Function at 0x4011a0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x40e38b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70c
push ebx
push ebp
push esi
mov dword [esp + 0x2c], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x61c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x51c]
rep stosd dword es:[edi], eax
mov ecx, 0x96
lea edi, [esp + 0x1fc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push str.player_files_surrogate.dat
push eax
mov dword [esp + 0x72c], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
push 0x41703c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401398
mov al, byte [ebx + 0xc]
mov ebp, 1
test al, 0x10
jne 0x40138c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x34]
push ebx
lea edx, [esp + 0x38]
push 0x64
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x40138c
mov esi, 0x417038
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012a0
test cl, cl
je 0x40129c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012a0
add eax, 2
add esi, 2
test cl, cl
jne 0x40127c
xor eax, eax
jmp 0x4012a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40134d
mov esi, 0x417034
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012da
test cl, cl
je 0x4012d6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012da
add eax, 2
add esi, 2
test cl, cl
jne 0x4012b6
xor eax, eax
jmp 0x4012df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40134d
mov al, byte [esp + 0x34]
test al, al
je 0x401306
lea eax, [esp + 0x34]
mov cl, byte [eax]
cmp cl, 0xd
je 0x4012fb
cmp cl, 0xa
jne 0x4012fe
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4012ef
cmp ebp, 1
jne 0x40131d
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x401363
lea eax, [ebp + ebp*4]
lea edi, [esp + 0x34]
lea ecx, [eax + eax*4]
xor eax, eax
lea edx, [esp + ecx*4 + 0x198]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0xc], 0x10
je 0x40124d
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4013c1
mov edi, 0x417030
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x260]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4013c1
mov edi, 0x417030
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x260]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x1fc]
push ecx
call esi
or ebx, 0xffffffff
add esp, 4
cmp eax, ebx
jne 0x40167d
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x2c4]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0xfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor bl, bl
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4014d9
mov ebp, dword [sym.imp.MSVCRT.dll_isdigit]
movsx ecx, byte [esp + esi + 0xfc]
push ecx
call ebp
add esp, 4
test eax, eax
jne 0x40144c
cmp byte [esp + esi + 0xfc], 0x2e
je 0x40144c
mov bl, 1
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x40142e
cmp bl, 1
jne 0x4014d9
xor edx, edx
lea eax, [esp + 0xfc]
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4014d9
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx]
test esi, esi
je 0x4014d9
movsx ecx, word [eax + 0xa]
mov edx, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x328]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, eax
lea edi, [esp + 0x390]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0x61c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40161e
mov ecx, 0x32
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x3f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x3f0]
push ecx
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00401100
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x460]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
mov edi, 0x417020
mov dword [esp + 0x28], eax
or ecx, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], eax
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x460]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x2c]
push ecx
push eax
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
call fcn.0040aa00
lea edi, [esp + 0x478]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x51c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x401650
lea ecx, [esp + 0x51c]
lea edx, [esp + 0x61c]
push ecx
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x104]
push ebx
push ecx
mov ecx, dword [edx + 0x43c]
push eax
call fcn.00403110
mov dword [esp + 0x724], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x71c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x718
ret
lea edx, [esp + 0x260]
push edx
call esi
add esp, 4
cmp eax, 3
mov dword [esp + 0x14], eax
jne 0x4013e3
mov dword [esp + 0x724], ebx
jmp 0x40165b