Function at 0x4024a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b82b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
push edi
mov ebx, ecx
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004021e0
mov edi, eax
mov edx, dword [esi + 0x14]
shl edx, 1
push edx
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1b8], 0
call fcn.004023e0
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
push edx
mov edx, dword [edi]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._s__server:_s__port:_d__protocol:_d
push ecx
mov byte [esp + 0x1d0], 1
call fcn.00473f50
add esp, 0x2c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x40253e
dec ecx
mov dword [eax], ecx
jne 0x40253e
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x1a4], 3
je 0x402564
dec ecx
mov dword [eax], ecx
jne 0x402564
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4025f1
mov edx, dword [0x5136f0]
push 0
push edx
lea ecx, [esp + 0x168]
call fcn.00406790
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x188]
mov byte [esp + 0x1a8], 5
call fcn.004725c0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x4025b1
lea edx, [esp + 0x160]
push edx
call fcn.00474730
mov eax, dword [esp + 0x184]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x1a4], 3
je 0x4025da
dec ecx
mov dword [eax], ecx
jne 0x4025da
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + method.wxObject.virtual_0], vtable.wxObject.0
call fcn.00474100
mov edx, dword [esi + 0x10]
xor eax, eax
mov ecx, 0x51
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x1b], al
mov eax, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], eax
mov ax, word [esi + 0x10]
mov esi, dword [0x5136ec]
mov dword [esp + 0x48], ecx
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov dword [esp + 0x4c], ecx
mov ax, 0x1c
add ax, 0x28
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x5c]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], 0xff
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], 0x10038
mov dword [esp + 0x58], ecx
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402680
mov esi, dword [esi - 8]
mov ecx, dword [0x5136e8]
lea edx, [esi + 1]
add word [esp + 0x18], dx
lea edx, [esp + esi + 0x5d]
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4026a0
mov eax, dword [0x5136e8]
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax - 8]
add cx, word [esp + 0x18]
push edx
add ecx, 6
and ecx, 0xfff8
add ecx, 0xa
mov word [esp + 0x1c], cx
call fcn.004014d0
movzx eax, word [esp + 0x1c]
push 0
sub eax, 2
push eax
lea ecx, [esp + 0x26]
push ecx
call fcn.00401f90
movzx esi, word [esp + 0x28]
add esp, 0x10
lea edx, [esi - 2]
push edx
lea eax, [esp + 0x1e]
push eax
mov ecx, ebx
call fcn.004010c0
mov dword [esp + esi + 0x18], eax
mov ax, word [esp + 0x18]
add ax, 4
movzx ecx, ax
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebx + 0x34]
mov word [esp + 0x20], ax
call fcn.00404ef0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x402742
dec ecx
mov dword [eax], ecx
jne 0x402742
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8