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

Disassembly:
sub esp, 0xa7c
push ebx
push ebp
mov eax, 6
mov ecx, 2
push esi
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
mov edi, 1
mov edx, 3
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
mov ebx, 0x430020
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], 0xd
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x80], 5
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [0x430020], ebx
mov dword [0x430024], ebx
mov ebp, edi
mov esi, ebx
lea edx, [esp + 0x38]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0xa1
call dword [0x430078]
test eax, eax
je 0x405628
cmp dword [esp + 0x1c], 0xa
jb 0x405494
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
cmp ebp, eax
je 0x405430
mov esi, dword [0x430024]
mov ebp, eax
dec eax
cmp eax, 4
ja case.default.0x405436
jmp dword [eax*4 + 0x4056bc]
push 0x1c
call fcn.00409da2
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
mov dword [eax + 8], ecx
jmp case.default.0x405436
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esi + 0xc], eax
mov esi, dword [esi + 4]
jmp case.default.0x405436
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov esi, dword [esi + 4]
jmp case.default.0x405436
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esi + 0x14], eax
mov esi, dword [esi + 4]
jmp case.default.0x405436
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x18], ecx
mov esi, dword [esi + 4]
jmp case.default.0x405436
mov ebp, dword [esp + 0xa90]
push 0
push 0
push 0x1009
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [0x430024]
cmp esi, ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
je 0x405584
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
lea edx, [esp + 0x8c]
push 0x100
push edx
push 0x4137d0
push eax
call fcn.004052e0
add esp, 0x10
push eax
push edi
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x294]
push str._s_:__s
push ecx
call ebx
mov edi, dword [esi + 0x14]
add esp, 0x10
test edi, edi
je 0x405521
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x18c]
push 0x100
push edx
push 0x4137d0
push eax
call fcn.004052e0
add esp, 0x10
jmp 0x405526
mov eax, 0x4137c4
push eax
push edi
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x494]
push str._s_:__s
push ecx
call ebx
mov edx, dword [esi + 8]
lea eax, [esp + 0x49c]
shl edx, 5
add edx, 0x413638
lea ecx, [esp + 0x29c]
push edx
push eax
push ecx
push 0x4137c0
push ebp
call fcn.00405c70
mov esi, dword [esi + 4]
mov edx, dword [esi]
push edx
call fcn.00409a36
add esp, 0x28
cmp esi, 0x430020
jne 0x4054bf
mov edi, 1
lea eax, [esp + 0x64]
lea ecx, [esp + 0x1c]
mov esi, 0x430040
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [0x430040], esi
mov dword [0x430044], esi
mov dword [esp + 0x10], edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0xa1
call dword [0x430078]
test eax, eax
je 0x405628
cmp dword [esp + 0x1c], 0xa
jb 0x405635
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
cmp ecx, eax
je 0x4055f3
mov esi, dword [0x430044]
mov dword [esp + 0x10], eax
dec eax
je 0x405605
dec eax
jne 0x4055b5
mov eax, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov esi, dword [esi + 4]
jmp 0x4055b5
push 0x1c
call fcn.00409da2
mov dword [eax], esi
mov dword [eax + 4], 0x430040
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
jmp 0x4055b5
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa7c
ret
mov esi, dword [0x430044]
cmp esi, 0x430040
je 0x4056ae
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x8c]
push 0x100
push eax
push 0x4137bc
push ecx
call fcn.004052e0
add esp, 0x10
push eax
push edi
call sub.WSOCK32.dll_inet_ntoa
push eax
lea edx, [esp + 0x694]
push str._s_:__s
push edx
call ebx
push 0x414960
lea eax, [esp + 0x6a0]
push 0x414960
push eax
push 0x4137b8
push ebp
call fcn.00405c70
mov esi, dword [esi + 4]
mov ecx, dword [esi]
push ecx
call fcn.00409a36
add esp, 0x28
cmp esi, 0x430040
jne 0x405643
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa7c
ret