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

Disassembly:
mov eax, 0x10074
call fcn.0040a7b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10084]
push edi
cmp byte [esi + 9], 6
jne 0x4038c0
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.WSOCK32.dll_inet_ntoa]
push 0x10
push eax
call edi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040a140
mov eax, dword [esi + 0x10]
add esp, 0xc
push 0x10
push eax
call edi
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040a140
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x90]
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
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
mov eax, dword [0x43f404]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x403758
push 0x421e10
push str.c:NetLog.txt
call fcn.0040a3d2
add esp, 8
mov dword [0x43f400], eax
test eax, eax
je 0x4038c0
push 2
push 0
push eax
call fcn.0040a326
mov eax, dword [0x43f400]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
push edx
push str._________n_r_s______s
push eax
call fcn.0040b488
mov edx, dword [0x43f400]
lea ecx, [esp + 0xa0]
push ecx
push str._s_n_r______n_r
push edx
call fcn.0040b488
mov eax, dword [0x43f400]
push eax
call fcn.0040a0e7
mov eax, dword [0x43f404]
add esp, 0x2c
dec eax
pop edi
pop esi
pop ebp
mov dword [0x43f404], eax
pop ebx
add esp, 0x10074
ret
mov ebp, dword [esp + 0x1008c]
xor edi, edi
lea ebx, [ebp - 0x2c]
test ebx, ebx
jle 0x4038c0
lea esi, [esp + edi + 0x84]
push 4
push esi
push 0x421de8
call fcn.0040b450
add esp, 0xc
test eax, eax
je 0x40379b
push 4
push esi
push 0x421de0
call fcn.0040b450
add esp, 0xc
test eax, eax
jne 0x4037a0
cmp ebp, 0x50
jl 0x4037b0
inc edi
cmp edi, ebx
jl 0x40376c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10074
ret
push 0x421e10
push str.c:NetLog.txt
call fcn.0040a3d2
add esp, 8
mov dword [0x43f400], eax
test eax, eax
je 0x4038c0
push 2
push 0
push eax
call fcn.0040a326
mov eax, dword [0x43f400]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
push edx
push str._s______s_n_r
push eax
call fcn.0040b488
mov edx, dword [0x43f400]
lea ecx, [esp + 0xa0]
push ecx
push str._s__________________________________________n_r_n_r
push edx
call fcn.0040b488
push 0
call fcn.0040a6c6
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040b2eb
push eax
push str._a___d__b__Y__H:_M:_S__Z
lea ecx, [esp + 0x78]
push 0x40
push ecx
call fcn.0040aa84
add esp, 0x40
lea edx, [esp + 0x14]
push edx
call fcn.0040a99f
add esp, 4
cmp word [esp + 0x1c], 0
je 0x403851
add word [esp + 0x1a], 0xffc4
movsx ecx, word [esp + 0x1a]
mov eax, ecx
mov esi, 0x3c
cdq
idiv esi
mov eax, 0x77777777
lea edi, [esp + 0x40]
push edx
imul ecx
sub edx, ecx
or ecx, 0xffffffff
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push str.__2.2d_2.2d
lea ecx, [esp + ecx + 0x4c]
push ecx
call fcn.0040a64c
mov eax, dword [0x43f400]
lea edx, [esp + 0x50]
push edx
push str._s_n_r_n_r
push eax
call fcn.0040b488
mov ecx, dword [0x43f400]
push ecx
call fcn.0040a0e7
add esp, 0x20
mov dword [0x43f404], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10074
ret