Function at 0x40ab5b
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
jmp 0x40aba0
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
fninit
mov dword [ebp - 0x1c], esp
push 0
xor eax, eax
call dword [0x4b5090]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40ac0b
push 0x52
push 0x402c9f6
push 6
call fcn.0049c8ef
add esp, 0xc
cmp dword [0x4b4e34], 0
je 0x40ac2c
cmp dword [0x4b4e38], 0
jne 0x40ac2c
mov eax, 1
jmp 0x40ac31
mov eax, 0
test eax, eax
je 0x40ac7f
push 0x80000301
push 0
push dword [0x4b4e34]
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a9e2
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ac77
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40b40d
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40acc8
cmp dword [0x4b4e3c], 0xffffffff
je 0x40acc8
xor eax, eax
jmp 0x40accd
mov eax, 1
test eax, eax
je 0x40ad1b
call fcn.0040b463
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ad03
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ad17
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40ad64
cmp dword [0x4b4e3c], 0xffffffff
je 0x40ad64
xor eax, eax
jmp 0x40ad69
mov eax, 1
test eax, eax
je 0x40adb7
call fcn.0040b532
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ad9f
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40adb3
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40ae00
cmp dword [0x4b4e3c], 0xffffffff
je 0x40ae00
xor eax, eax
jmp 0x40ae05
mov eax, 1
test eax, eax
je 0x40ae53
call fcn.0040b7b5
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ae3b
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ae4f
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40ae9c
cmp dword [0x4b4e3c], 0xffffffff
je 0x40ae9c
xor eax, eax
jmp 0x40aea1
mov eax, 1
test eax, eax
je 0x40aeef
call fcn.0040b887
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40aed7
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40aeeb
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40af38
cmp dword [0x4b4e3c], 0xffffffff
je 0x40af38
xor eax, eax
jmp 0x40af3d
mov eax, 1
test eax, eax
je 0x40afa5
call fcn.0040bba3
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0049dde0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40af8d
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40afa1
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40afee
cmp dword [0x4b4e3c], 0xffffffff
je 0x40afee
xor eax, eax
jmp 0x40aff3
mov eax, 1
test eax, eax
je 0x40b041
call fcn.0040bc1a
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b029
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b03d
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40b08a
cmp dword [0x4b4e3c], 0xffffffff
je 0x40b08a
xor eax, eax
jmp 0x40b08f
mov eax, 1
test eax, eax
je 0x40b0dd
call fcn.0040c354
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b0c5
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b0d9
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4e3c]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.0049dc30
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40b129
cmp dword [0x4b4e3c], 0xffffffff
je 0x40b129
xor eax, eax
jmp 0x40b12e
mov eax, 1
test eax, eax
je 0x40b180
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040d538
test eax, eax
je 0x40b180
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.004013f3
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b17c
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4b4e40]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b1ad
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b1c4
mov eax, 0x4ae205
push eax
push 1
mov ebx, 0x130
call fcn.0049e670
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b253
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4ae932
push 0x4ae93d
push 0
xor eax, eax
call dword [0x4b50b4]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b22b
push 0x8d8
push 0x402c9f6
push 6
call fcn.0049c8ef
add esp, 0xc
push 0
call fcn.0049c8cb
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40b253
push 0
mov ebx, 0x350
call fcn.0049dd00
add esp, 4
jmp 0x40b235
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b266
mov eax, 0x4ae205
push eax
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b290
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a94b
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b2b4
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f434
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b2e4
call fcn.0040f52f
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0040fa56
lea eax, [ebp - 0x18]
push eax
call fcn.004032d5
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40b315
mov eax, 0x4ae216
push eax
push 3
mov ebx, 0x19c
call fcn.0049eb20
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b341
push ebx
call fcn.0049c8e9
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40b359
and eax, 0xff
jmp 0x40b3ae
cmp ecx, 0x80000201
jne 0x40b364
cwde
jmp 0x40b3ae
cmp ecx, 0x80000301
je 0x40b3ae
cmp ecx, 0x80000401
je 0x40b3ae
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40b39e
cmp ecx, 0x80000601
je 0x40b3a3
push 0xaa7
push 0x402c9f6
push 2
call fcn.0049c8ef
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40b3a9
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.004014a6
mov dword [0x4b4e34], eax
mov dword [0x4b4e38], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b3d9
push eax
mov ebx, eax
call fcn.00401388
inc eax
push eax
call fcn.0049c8e3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b40d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b41e
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b42e
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b43e
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b44e
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b45e
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret