Function at 0x40bb48
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 0x40bb8d
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 [0x45b3d6]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40bbf8
push 0x52
push 0x40254e7
push 6
call fcn.00448899
add esp, 0xc
cmp dword [0x45b1aa], 0
je 0x40bc19
cmp dword [0x45b0d6], 0
jne 0x40bc19
mov eax, 1
jmp 0x40bc1e
mov eax, 0
test eax, eax
je 0x40bc6c
push 0x80000301
push 0
push dword [0x45b1aa]
push 1
mov ebx, 0x198
call fcn.0044ac60
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b9cf
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bc64
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40c3fa
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40bcb5
cmp dword [0x45b0ce], 0xffffffff
je 0x40bcb5
xor eax, eax
jmp 0x40bcba
mov eax, 1
test eax, eax
je 0x40bd08
call fcn.0040c450
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bcf0
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bd04
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40bd51
cmp dword [0x45b0ce], 0xffffffff
je 0x40bd51
xor eax, eax
jmp 0x40bd56
mov eax, 1
test eax, eax
je 0x40bda4
call fcn.0040c51f
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bd8c
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bda0
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40bded
cmp dword [0x45b0ce], 0xffffffff
je 0x40bded
xor eax, eax
jmp 0x40bdf2
mov eax, 1
test eax, eax
je 0x40be40
call fcn.0040c7a2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40be28
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40be3c
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40be89
cmp dword [0x45b0ce], 0xffffffff
je 0x40be89
xor eax, eax
jmp 0x40be8e
mov eax, 1
test eax, eax
je 0x40bedc
call fcn.0040c874
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bec4
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bed8
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40bf25
cmp dword [0x45b0ce], 0xffffffff
je 0x40bf25
xor eax, eax
jmp 0x40bf2a
mov eax, 1
test eax, eax
je 0x40bf92
call fcn.0040cb90
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00449e20
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bf7a
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bf8e
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40bfdb
cmp dword [0x45b0ce], 0xffffffff
je 0x40bfdb
xor eax, eax
jmp 0x40bfe0
mov eax, 1
test eax, eax
je 0x40c02e
call fcn.0040cc07
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c016
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c02a
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40c077
cmp dword [0x45b0ce], 0xffffffff
je 0x40c077
xor eax, eax
jmp 0x40c07c
mov eax, 1
test eax, eax
je 0x40c0ca
call fcn.0040d341
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c0b2
push ebx
call fcn.0044888d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c0c6
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x45b0ce]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.00449d80
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40c116
cmp dword [0x45b0ce], 0xffffffff
je 0x40c116
xor eax, eax
jmp 0x40c11b
mov eax, 1
test eax, eax
je 0x40c16d
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040e525
test eax, eax
je 0x40c16d
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401500
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c169
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x45b0d2]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401500
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c19a
push ebx
call fcn.0044888d
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 0x40c1b1
mov eax, 0x45820b
push eax
push 1
mov ebx, 0x130
call fcn.0044ad30
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c240
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4589e0
push 0x4589eb
push 0
xor eax, eax
call dword [0x45b3fa]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40c218
push 0x8d8
push 0x40254e7
push 6
call fcn.00448899
add esp, 0xc
push 0
call fcn.00448875
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40c240
push 0
mov ebx, 0x350
call fcn.0044a3e0
add esp, 4
jmp 0x40c222
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40c253
mov eax, 0x45820b
push eax
push 1
mov ebx, 0x198
call fcn.0044ac60
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c27d
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b938
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c2a1
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401248
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c2d1
call fcn.00410421
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.00410948
lea eax, [ebp - 0x18]
push eax
call fcn.004042e3
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 0x40c302
mov eax, 0x458311
push eax
push 3
mov ebx, 0x19c
call fcn.0044a550
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 0x40c32e
push ebx
call fcn.0044888d
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40c346
and eax, 0xff
jmp 0x40c39b
cmp ecx, 0x80000201
jne 0x40c351
cwde
jmp 0x40c39b
cmp ecx, 0x80000301
je 0x40c39b
cmp ecx, 0x80000401
je 0x40c39b
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40c38b
cmp ecx, 0x80000601
je 0x40c390
push 0xaa7
push 0x40254e7
push 2
call fcn.00448899
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40c396
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401815
mov dword [0x45b1aa], eax
mov dword [0x45b0d6], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c3c6
push eax
mov ebx, eax
call fcn.00401343
inc eax
push eax
call fcn.00448887
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c3fa
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c40b
push ebx
call fcn.0044888d
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c41b
push ebx
call fcn.0044888d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40c42b
push ebx
call fcn.0044888d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c43b
push ebx
call fcn.0044888d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c44b
push ebx
call fcn.0044888d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret