Function at 0x473940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49d509
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call dword [0x49f754]
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], esi
call fcn.00471f20
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x28]
lea ecx, [ebp + 0x90]
push eax
mov byte [esp + 0x6c], 2
call fcn.0047c2c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.004737b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 2
call fcn.004734f0
mov ecx, dword [0x4bd2c0]
mov edx, dword [ecx + 0x484]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
mov ebx, edi
jae 0x473b66
add edi, 0xc
lea ecx, [ebp + 0x8c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [edi + 0xc]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x473a2c
test cl, cl
je 0x473a28
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x473a2c
add eax, 2
add esi, 2
test cl, cl
jne 0x473a08
xor eax, eax
jmp 0x473a31
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x473b52
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x473b52
mov eax, dword [esp + 0x78]
test eax, eax
mov ecx, edi
je 0x473b35
push 0x4aa1ac
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
jne 0x473b52
push ebx
lea ecx, [esp + 0x48]
call fcn.00472770
lea ecx, [ebx + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [esp + 0x74]
add esp, 4
cmp eax, ecx
jne 0x473ca1
mov dword [ebp + 0x84], 1
mov eax, dword [0x4bd2c0]
mov dword [eax + 0x47c], 2
lea ecx, [esp + 0x18]
call fcn.004734f0
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc
push 0x4aa1a8
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
je 0x473c5d
mov eax, dword [esp + 0x20]
add ebx, 0x1c
add edi, 0x1c
cmp ebx, eax
jb 0x4739f1
xor esi, esi
lea ecx, [esp + 0x28]
call fcn.00471f20
mov edx, dword [esp + 0x74]
push edx
lea eax, [esp + 0x30]
push 0x4a0ea0
push eax
mov byte [esp + 0x74], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x84]
add esp, 0xc
cmp eax, esi
mov eax, 0x4aa1ac
jne 0x473ba1
mov eax, 0x4aa1a8
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call dword [0x49f214]
mov edx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x34]
push 0x4a0ea0
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0x4aa2e8
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
lea ecx, [ebp + 0x8c]
push ecx
lea ecx, [esp + 0x44]
call dword [0x49f214]
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, 0x1388
lea ebx, [ebp + 0x90]
je 0x473cae
mov edx, dword [ebp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.0047b7a0
test eax, eax
jne 0x473ce7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 1
call edi
mov edx, esi
dec esi
test edx, edx
jle 0x473ce7
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.0047b7a0
test eax, eax
je 0x473c30
jmp 0x473ce7
push ebx
lea ecx, [esp + 0x48]
call fcn.00472770
lea ecx, [ebx + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [esp + 0x74]
add esp, 4
cmp eax, ecx
jne 0x473ca1
mov dword [ebp + 0x88], 1
mov ecx, dword [0x4bd2c0]
mov dword [ecx + 0x47c], 2
jmp 0x473ac2
mov dword [esp + 0x14], 1
jmp 0x473b64
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0047b820
test eax, eax
jne 0x473ce7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
mov edx, esi
dec esi
test edx, edx
jle 0x473ce7
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0047b820
test eax, eax
je 0x473cc8
xor edx, edx
test esi, esi
setg dl
lea ecx, [esp + 0x40]
mov edi, edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x473da1
mov ebp, dword [esp + 0x20]
cmp ebx, ebp
je 0x473d98
lea esi, [ebx + 0x14]
lea esp, [esp]
lea ecx, [esi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi - 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi - 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi - 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
add esi, 0x1c
lea eax, [esi - 0x14]
cmp eax, ebp
jne 0x473d50
push ebx
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc