Function at 0x40b529
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 0x40b56e
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 [0x4c2ae7]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b5d9
push 0x52
push 0x4026eab
push 6
call fcn.004a9c88
add esp, 0xc
cmp dword [0x4c285f], 0
je 0x40b5fa
cmp dword [0x4c277f], 0
jne 0x40b5fa
mov eax, 1
jmp 0x40b5ff
mov eax, 0
test eax, eax
je 0x40b64d
push 0x80000301
push 0
push dword [0x4c285f]
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b3b0
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b645
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40bddb
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40b696
cmp dword [0x4c2777], 0xffffffff
je 0x40b696
xor eax, eax
jmp 0x40b69b
mov eax, 1
test eax, eax
je 0x40b6e9
call fcn.0040be31
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b6d1
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b6e5
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40b732
cmp dword [0x4c2777], 0xffffffff
je 0x40b732
xor eax, eax
jmp 0x40b737
mov eax, 1
test eax, eax
je 0x40b785
call fcn.0040bf00
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b76d
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b781
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40b7ce
cmp dword [0x4c2777], 0xffffffff
je 0x40b7ce
xor eax, eax
jmp 0x40b7d3
mov eax, 1
test eax, eax
je 0x40b821
call fcn.0040c183
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b809
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b81d
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40b86a
cmp dword [0x4c2777], 0xffffffff
je 0x40b86a
xor eax, eax
jmp 0x40b86f
mov eax, 1
test eax, eax
je 0x40b8bd
call fcn.0040c255
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b8a5
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b8b9
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40b906
cmp dword [0x4c2777], 0xffffffff
je 0x40b906
xor eax, eax
jmp 0x40b90b
mov eax, 1
test eax, eax
je 0x40b973
call fcn.0040c571
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b95b
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b96f
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40b9bc
cmp dword [0x4c2777], 0xffffffff
je 0x40b9bc
xor eax, eax
jmp 0x40b9c1
mov eax, 1
test eax, eax
je 0x40ba0f
call fcn.0040c5e8
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b9f7
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ba0b
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40ba58
cmp dword [0x4c2777], 0xffffffff
je 0x40ba58
xor eax, eax
jmp 0x40ba5d
mov eax, 1
test eax, eax
je 0x40baab
call fcn.0040cd22
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ba93
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40baa7
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.004ab060
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40baf7
cmp dword [0x4c2777], 0xffffffff
je 0x40baf7
xor eax, eax
jmp 0x40bafc
mov eax, 1
test eax, eax
je 0x40bb4e
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040df06
test eax, eax
je 0x40bb4e
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bb4a
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4c277b]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bb7b
push ebx
call fcn.004a9c82
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 0x40bb92
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x130
call fcn.004abb60
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bc21
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4bbab6
push 0x4bbac1
push 0
xor eax, eax
call dword [0x4c2b0b]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40bbf9
push 0x8d8
push 0x4026eab
push 6
call fcn.004a9c88
add esp, 0xc
push 0
call fcn.004a9c64
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40bc21
push 0
mov ebx, 0x350
call fcn.004ab110
add esp, 4
jmp 0x40bc03
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40bc34
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bc5e
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b319
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bc82
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401293
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bcb2
call fcn.0040fe02
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.00410329
lea eax, [ebp - 0x18]
push eax
call fcn.00403cc4
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 0x40bce3
mov eax, 0x4bb404
push eax
push 3
mov ebx, 0x19c
call fcn.004abf30
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 0x40bd0f
push ebx
call fcn.004a9c82
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40bd27
and eax, 0xff
jmp 0x40bd7c
cmp ecx, 0x80000201
jne 0x40bd32
cwde
jmp 0x40bd7c
cmp ecx, 0x80000301
je 0x40bd7c
cmp ecx, 0x80000401
je 0x40bd7c
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40bd6c
cmp ecx, 0x80000601
je 0x40bd71
push 0xaa7
push 0x4026eab
push 2
call fcn.004a9c88
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40bd77
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401d67
mov dword [0x4c285f], eax
mov dword [0x4c277f], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bda7
push eax
mov ebx, eax
call fcn.0040138e
inc eax
push eax
call fcn.004a9c7c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bddb
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bdec
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bdfc
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40be0c
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40be1c
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40be2c
push ebx
call fcn.004a9c82
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret