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

Disassembly:
sub esp, 0x70
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x78], 0
mov eax, dword [0x59e6d8]
push esi
mov esi, 1
push edi
mov edi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
jne 0x524100
mov eax, dword [0x59e6d4]
push eax
call fcn.0051f640
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x524415
cmp dword [esp + 0x7c], eax
je 0x524147
call fcn.00523a40
cmp dword [0x59e6c4], 0
je 0x52413f
mov esi, 0x200
mov edi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call fcn.00522a30
jmp 0x524147
mov dword [esp + 0x7c], 0
push ebx
push ebp
push esi
call fcn.0051f5b0
mov ebp, eax
push edi
mov dword [esp + 0x28], ebp
call fcn.0051f5b0
add esp, 8
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x524400
test ebx, ebx
je 0x524400
cmp dword [esp + 0x84], 0
mov esi, ebp
mov edi, ebx
mov byte [ebp], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov byte [ebx], 0
je 0x524377
call fcn.00522a30
test al, al
je 0x5242e4
mov ebx, dword [0x59f4b0]
mov eax, dword [0x463b38]
mov ecx, dword [0x463b58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
test ebx, ebx
je 0x524293
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x100
mov edi, edi
push 0x30
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00526600
mov eax, dword [ebx + 4]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
push ecx
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x84]
push 0x46f794
push eax
mov dword [esp + 0x68], edi
call esi
add esp, 0x24
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x6c]
push 0x102
mov dword [esp + 0x58], ecx
call fcn.0051cab0
test eax, eax
je 0x524281
push eax
call fcn.0051b5c0
cmp dword [0x59e6b4], 0
jne 0x5242af
push 2
push 4
lea eax, [esp + 0x24]
push eax
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
je 0x524281
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005237f0
add esp, 0x20
test al, al
je 0x5242cc
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5241d0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov dword [0x463b38], edx
mov dword [0x463b58], eax
jmp 0x524377
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov dword [0x463b38], ecx
mov dword [0x463b58], edx
jmp 0x52436f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [0x463b38], eax
mov dword [0x463b58], ecx
jmp 0x5243fc
call fcn.005229e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor edi, edi
push 0xffff
push 0x4651d5
push 0
add esi, 0xbb8
call fcn.00523b60
cmp dword [0x59e6b4], 0
jne 0x52436f
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00522ef0
test eax, eax
je 0x524369
cmp dword [0x59e6b4], 0
jne 0x52436f
mov edx, dword [esp + 0x1c]
add eax, 0x1c
push eax
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005237f0
add esp, 0x20
test al, al
je 0x524400
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00522ef0
test eax, eax
jne 0x524322
inc edi
cmp edi, 3
jl 0x5242f3
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push 0x59e6d4
sub esi, ebp
inc esi
push 0x2710
sub edi, ebx
push esi
inc edi
call fcn.0051f5d0
push 0x59e6d8
push 0x2710
push edi
mov ebx, eax
call fcn.0051f5d0
add esp, 0x18
mov ebp, eax
test ebx, ebx
je 0x5243dd
test ebp, ebp
je 0x5243dd
mov edx, dword [esp + 0x20]
push esi
push edx
push ebx
call fcn.00526df0
mov eax, dword [esp + 0x1c]
push edi
push eax
push ebp
call fcn.00526df0
add esp, 0x18
cmp dword [esp + 0x88], 0
je 0x5243d7
mov dword [esp + 0x28], ebp
jmp 0x5243f8
mov dword [esp + 0x28], ebx
jmp 0x5243f8
mov ecx, dword [0x59e6d4]
push ecx
call fcn.0051f6a0
mov edx, dword [0x59e6d8]
push edx
call fcn.0051f6a0
add esp, 8
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push ebp
call fcn.00526d54
push ebx
call fcn.00526d54
mov eax, dword [esp + 0x30]
add esp, 8
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
call fcn.00526a8a
add esp, 0x70
ret 8