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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b82f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
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 + 0x1c8], 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 + 0x1e0], 1
call fcn.00473f50
add esp, 0x2c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4027fe
dec ecx
mov dword [eax], ecx
jne 0x4027fe
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 + 0x1b4], 3
je 0x402824
dec ecx
mov dword [eax], ecx
jne 0x402824
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4028b1
mov edx, dword [0x5136f0]
push 0
push edx
lea ecx, [esp + 0x178]
call fcn.00406790
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x198]
mov byte [esp + 0x1b8], 5
call fcn.004725c0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x402871
lea edx, [esp + 0x170]
push edx
call fcn.00474730
mov eax, dword [esp + 0x194]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x1b4], 3
je 0x40289a
dec ecx
mov dword [eax], ecx
jne 0x40289a
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x170]
mov dword [esp + method.wxObject.virtual_0], vtable.wxObject.0
call fcn.00474100
xor edx, edx
xor eax, eax
mov ecx, 0x55
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov byte [esp + 0x1b], al
mov eax, dword [esi + 8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], eax
mov ax, word [esi + 0x10]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x58], edx
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov dword [esp + 0x5c], edx
mov ax, 0x2c
add ax, 0x28
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov esi, dword [0x5136ec]
mov dword [esp + 0x64], edx
lea ecx, [esp + 0x6c]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], 0xff
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], 0x10038
mov dword [esp + 0x68], edx
mov eax, esi
sub ecx, esi
nop
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x402950
mov esi, dword [esi - 8]
mov ecx, dword [0x5136e8]
lea eax, [esi + 1]
add word [esp + 0x18], ax
lea edx, [esp + esi + 0x6d]
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402970
mov ecx, dword [0x5136e8]
mov eax, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx - 8]
add dx, word [esp + 0x18]
push eax
add edx, 6
and edx, 0xfff8
add edx, 0xa
mov word [esp + 0x1c], dx
call fcn.004014d0
movzx ecx, word [esp + 0x1c]
push 0
sub ecx, 2
push ecx
lea edx, [esp + 0x26]
push edx
call fcn.00401f90
movzx esi, word [esp + 0x28]
add esp, 0x10
lea eax, [esi - 2]
push eax
lea ecx, [esp + 0x1e]
push ecx
mov ecx, ebx
call fcn.004010c0
mov dword [esp + esi + 0x18], eax
mov ax, word [esp + 0x18]
add ax, 4
movzx edx, ax
mov word [esp + 0x18], ax
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x34]
call fcn.00404ef0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x402a13
dec ecx
mov dword [eax], ecx
jne 0x402a13
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8