Function at 0x40b546
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 0x40b58b
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 [0x4c2822]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b5f6
push 0x52
push 0x4026f3a
push 6
call fcn.004a9fd1
add esp, 0xc
cmp dword [0x4c2596], 0
je 0x40b617
cmp dword [0x4c24b6], 0
jne 0x40b617
mov eax, 1
jmp 0x40b61c
mov eax, 0
test eax, eax
je 0x40b66a
push 0x80000301
push 0
push dword [0x4c2596]
push 1
mov ebx, 0x198
call fcn.004abde0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b3cd
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b662
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40bdf8
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40b6b3
cmp dword [0x4c24ae], 0xffffffff
je 0x40b6b3
xor eax, eax
jmp 0x40b6b8
mov eax, 1
test eax, eax
je 0x40b706
call fcn.0040be4e
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b6ee
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b702
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40b74f
cmp dword [0x4c24ae], 0xffffffff
je 0x40b74f
xor eax, eax
jmp 0x40b754
mov eax, 1
test eax, eax
je 0x40b7a2
call fcn.0040bf1d
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b78a
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b79e
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40b7eb
cmp dword [0x4c24ae], 0xffffffff
je 0x40b7eb
xor eax, eax
jmp 0x40b7f0
mov eax, 1
test eax, eax
je 0x40b83e
call fcn.0040c1a0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b826
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b83a
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40b887
cmp dword [0x4c24ae], 0xffffffff
je 0x40b887
xor eax, eax
jmp 0x40b88c
mov eax, 1
test eax, eax
je 0x40b8da
call fcn.0040c272
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b8c2
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b8d6
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40b923
cmp dword [0x4c24ae], 0xffffffff
je 0x40b923
xor eax, eax
jmp 0x40b928
mov eax, 1
test eax, eax
je 0x40b990
call fcn.0040c58e
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004ab540
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b978
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b98c
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40b9d9
cmp dword [0x4c24ae], 0xffffffff
je 0x40b9d9
xor eax, eax
jmp 0x40b9de
mov eax, 1
test eax, eax
je 0x40ba2c
call fcn.0040c605
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ba14
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ba28
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40ba75
cmp dword [0x4c24ae], 0xffffffff
je 0x40ba75
xor eax, eax
jmp 0x40ba7a
mov eax, 1
test eax, eax
je 0x40bac8
call fcn.0040cd3f
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bab0
push ebx
call fcn.004a9fcb
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bac4
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c24ae]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.004ab3b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40bb14
cmp dword [0x4c24ae], 0xffffffff
je 0x40bb14
xor eax, eax
jmp 0x40bb19
mov eax, 1
test eax, eax
je 0x40bb6b
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040df23
test eax, eax
je 0x40bb6b
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401cd1
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bb67
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4c24b2]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cd1
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bb98
push ebx
call fcn.004a9fcb
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 0x40bbaf
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x130
call fcn.004abeb0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bc3e
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4bbab8
push 0x4bbac3
push 0
xor eax, eax
call dword [0x4c2846]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40bc16
push 0x8d8
push 0x4026f3a
push 6
call fcn.004a9fd1
add esp, 0xc
push 0
call fcn.004a9fad
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40bc3e
push 0
mov ebx, 0x350
call fcn.004ab460
add esp, 4
jmp 0x40bc20
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40bc51
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abde0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bc7b
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b336
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bc9f
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401276
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bccf
call fcn.0040fe1f
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.00410346
lea eax, [ebp - 0x18]
push eax
call fcn.00403ce1
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 0x40bd00
mov eax, 0x4bb404
push eax
push 3
mov ebx, 0x19c
call fcn.004ac280
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 0x40bd2c
push ebx
call fcn.004a9fcb
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40bd44
and eax, 0xff
jmp 0x40bd99
cmp ecx, 0x80000201
jne 0x40bd4f
cwde
jmp 0x40bd99
cmp ecx, 0x80000301
je 0x40bd99
cmp ecx, 0x80000401
je 0x40bd99
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40bd89
cmp ecx, 0x80000601
je 0x40bd8e
push 0xaa7
push 0x4026f3a
push 2
call fcn.004a9fd1
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40bd94
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401d84
mov dword [0x4c2596], eax
mov dword [0x4c24b6], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bdc4
push eax
mov ebx, eax
call fcn.00401371
inc eax
push eax
call fcn.004a9fc5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bdf8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40be09
push ebx
call fcn.004a9fcb
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40be19
push ebx
call fcn.004a9fcb
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40be29
push ebx
call fcn.004a9fcb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40be39
push ebx
call fcn.004a9fcb
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40be49
push ebx
call fcn.004a9fcb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret