Function at 0x404c40
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40fdab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6b8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1c9]
mov byte [esp + 0x1c8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x6d8]
mov dword [esp + 0x38], ebp
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c8]
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 + 0xc8]
call fcn.00404580
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
lea eax, [esp + 0x1cc]
push edx
push eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0x6dc], ebx
call fcn.004046a0
test eax, eax
je 0x405090
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x54]
mov dl, 0x60
rep stosd dword es:[edi], eax
mov eax, 0x10b8
mov ecx, 0xb
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
lea eax, [esp + 0x10]
mov ebp, 2
mov esi, 1
mov byte [esp + 0x10], 0xc4
test eax, eax
mov byte [esp + 0x11], 0xfe
mov byte [esp + 0x12], 0xfc
mov byte [esp + 0x13], 0x99
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x52
mov byte [esp + 0x16], 0x1b
mov byte [esp + 0x17], 0x10
mov byte [esp + 0x18], 0xbb
mov byte [esp + 0x19], 0xcb
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0xaa
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x21
mov byte [esp + 0x1e], 0x34
mov byte [esp + 0x1f], 0x7a
mov byte [esp + 0x54], 5
mov byte [esp + 0x56], cl
mov byte [esp + 0x57], 3
mov dword [esp + 0x58], 0x10
mov word [esp + 0x5e], bx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], ebp
mov word [esp + 0x70], bx
mov word [esp + 0x72], si
je 0x404dbe
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov byte [esp + 0x10], 4
mov byte [esp + 0x11], 0x5d
mov byte [esp + 0x12], 0x88
mov byte [esp + 0x13], 0x8a
mov eax, dword [esp + 0x10]
mov byte [esp + 0x14], 0xeb
mov byte [esp + 0x15], 0x1c
mov byte [esp + 0x16], 0xc9
mov byte [esp + 0x17], 0x11
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x18], 0x9f
mov byte [esp + 0x19], 0xe8
mov byte [esp + 0x1a], 8
mov byte [esp + 0x1b], bl
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1c], 0x2b
mov byte [esp + 0x1d], 0x10
mov byte [esp + 0x1e], 0x48
mov byte [esp + 0x1f], dl
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x9c]
mov dword [esp + 0x94], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov byte [esp + 0x10], 0xc4
mov byte [esp + 0x11], 0xfe
mov byte [esp + 0x12], 0xfc
mov byte [esp + 0x13], 0x99
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x52
mov byte [esp + 0x16], 0x1b
mov byte [esp + 0x17], 0x10
mov edx, dword [esp + 0x14]
mov byte [esp + 0x18], 0xbb
mov byte [esp + 0x19], 0xcb
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0xaa
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x21
mov byte [esp + 0x1e], 0x34
mov byte [esp + 0x1f], 0x7a
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], edx
mov byte [esp + 0x10], 0x2c
mov byte [esp + 0x11], 0x1c
mov byte [esp + 0x12], 0xb7
mov byte [esp + 0x13], 0x6c
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov byte [esp + 0x14], 0x12
mov byte [esp + 0x15], 0x98
mov byte [esp + 0x16], 0x40
mov byte [esp + 0x17], 0x45
mov eax, dword [esp + 0x14]
mov byte [esp + 0x18], 3
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x1c]
mov word [esp + 0x84], bx
mov dword [esp + 0x98], ebp
mov word [esp + 0x5c], 0x74
mov word [esp + 0x9c], si
mov word [esp + 0x9e], si
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], esi
lea ecx, [esp + 0xd0]
call fcn.00403180
lea eax, [esp + 0x54]
push 0x48
push eax
lea ecx, [esp + 0xd8]
call fcn.00403000
lea ecx, [esp + 0x9c]
push 0x2c
push ecx
lea ecx, [esp + 0xd8]
call fcn.00403000
push 0x400
lea ecx, [esp + 0xd4]
call fcn.00403090
push eax
push ebx
lea ecx, [esp + 0xdc]
call fcn.004031c0
push eax
lea ecx, [esp + 0xd4]
call fcn.004047b0
lea ecx, [esp + 0xc8]
call fcn.004047d0
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x3c], 5
mov dword [esp + 0x40], 0x10
mov byte [esp + 0x3f], 3
mov dword [esp + 0x48], ebp
mov word [esp + 0x50], bx
mov word [esp + 0x52], 5
mov word [esp + 0x46], bx
mov word [esp + 0x44], 0x18
mov dword [esp + 0x4c], ebx
call fcn.00403180
lea edx, [esp + 0x3c]
push 0x18
push edx
lea ecx, [esp + 0xd8]
call fcn.00403000
push 0x400
lea ecx, [esp + 0xd4]
call fcn.00403090
push eax
push ebx
lea ecx, [esp + 0xdc]
call fcn.004031c0
push eax
lea ecx, [esp + 0xd4]
call fcn.004047b0
lea ecx, [esp + 0xc8]
call fcn.004047d0
lea ecx, [esp + 0xc8]
call fcn.00404890
push 0x2a
lea eax, [esp + 0x34]
push ebp
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x3c], bl
mov word [esp + 0x3d], bx
call fcn.004031f0
mov esi, eax
cmp esi, ebx
jg 0x4050ae
lea ecx, [esp + 0xc8]
mov dword [esp + 0x6d0], 0xffffffff
call fcn.00404640
xor eax, eax
jmp 0x4052ea
push 0x2a
lea ecx, [esp + 0x34]
push 3
push ecx
lea ecx, [esp + 0x108]
call fcn.004031f0
cmp esi, eax
lea ebp, [esi + 2]
jne 0x4050cb
inc ebp
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x14a]
mov word [esp + 0x148], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi - 0x29]
lea ecx, [esp + 0xfc]
push eax
push 0x2a
mov dword [esp + 0x3c], eax
call fcn.00403260
mov ecx, dword [esp + 0x34]
mov esi, eax
mov edx, ecx
lea edi, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x130]
push 0x20
lea ecx, [esp + 0x154]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esp + 0x158]
push eax
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x2c9]
mov byte [esp + 0x2c8], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x38]
stosw word es:[edi], ax
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x2c8]
stosb byte es:[edi], al
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x1cc]
push edx
push eax
push str._s:_d_t_s_t
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 2
push ebp
lea ecx, [esp + 0x104]
call fcn.00403260
cmp word [eax], 7
jne 0x40528d
add ebp, 2
lea edx, [esp + 0x30]
push ebp
push 3
push edx
lea ecx, [esp + 0x108]
call fcn.004031f0
mov edx, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18a]
mov word [esp + 0x188], bx
sub edx, ebp
rep stosd dword es:[edi], eax
push edx
push ebp
lea ecx, [esp + 0x104]
mov dword [esp + 0x3c], edx
stosw word es:[edi], ax
call fcn.00403260
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x188]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x188]
stosw word es:[edi], ax
push ecx
push str._ls_t
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c8]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [eax + ebp + 3]
jmp 0x4051a6
mov edi, 0x413574
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040ebf0
add esp, 4
lea ecx, [esp + 0xc8]
mov dword [esp + 0x6d0], 0xffffffff
call fcn.00404640
mov eax, 1
mov ecx, dword [esp + 0x6c8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c4
ret 4