Function at 0x40bbe8
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 0x40bc2d
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 [0x4c2af9]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40bc98
push 0x52
push 0x4027388
push 6
call fcn.004a96c9
add esp, 0xc
cmp dword [0x4c2871], 0
je 0x40bcb9
cmp dword [0x4c2795], 0
jne 0x40bcb9
mov eax, 1
jmp 0x40bcbe
mov eax, 0
test eax, eax
je 0x40bd0c
push 0x80000301
push 0
push dword [0x4c2871]
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ba6f
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bd04
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40c49a
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40bd55
cmp dword [0x4c278d], 0xffffffff
je 0x40bd55
xor eax, eax
jmp 0x40bd5a
mov eax, 1
test eax, eax
je 0x40bda8
call fcn.0040c4f0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bd90
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bda4
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40bdf1
cmp dword [0x4c278d], 0xffffffff
je 0x40bdf1
xor eax, eax
jmp 0x40bdf6
mov eax, 1
test eax, eax
je 0x40be44
call fcn.0040c5bf
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40be2c
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40be40
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40be8d
cmp dword [0x4c278d], 0xffffffff
je 0x40be8d
xor eax, eax
jmp 0x40be92
mov eax, 1
test eax, eax
je 0x40bee0
call fcn.0040c842
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bec8
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bedc
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40bf29
cmp dword [0x4c278d], 0xffffffff
je 0x40bf29
xor eax, eax
jmp 0x40bf2e
mov eax, 1
test eax, eax
je 0x40bf7c
call fcn.0040c914
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bf64
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bf78
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40bfc5
cmp dword [0x4c278d], 0xffffffff
je 0x40bfc5
xor eax, eax
jmp 0x40bfca
mov eax, 1
test eax, eax
je 0x40c032
call fcn.0040cc30
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c01a
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c02e
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40c07b
cmp dword [0x4c278d], 0xffffffff
je 0x40c07b
xor eax, eax
jmp 0x40c080
mov eax, 1
test eax, eax
je 0x40c0ce
call fcn.0040cca7
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c0b6
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c0ca
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40c117
cmp dword [0x4c278d], 0xffffffff
je 0x40c117
xor eax, eax
jmp 0x40c11c
mov eax, 1
test eax, eax
je 0x40c16a
call fcn.0040d3e1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c152
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c166
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4c278d]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.004aaaa0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40c1b6
cmp dword [0x4c278d], 0xffffffff
je 0x40c1b6
xor eax, eax
jmp 0x40c1bb
mov eax, 1
test eax, eax
je 0x40c20d
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040e5c5
test eax, eax
je 0x40c20d
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c209
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4c2791]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c23a
push ebx
call fcn.004a96c3
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 0x40c251
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x130
call fcn.004abbc0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c2e0
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4bbb16
push 0x4bbb21
push 0
xor eax, eax
call dword [0x4c2b1d]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40c2b8
push 0x8d8
push 0x4027388
push 6
call fcn.004a96c9
add esp, 0xc
push 0
call fcn.004a96a5
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40c2e0
push 0
mov ebx, 0x350
call fcn.004ab560
add esp, 4
jmp 0x40c2c2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40c2f3
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c31d
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b9d8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c341
push ebx
call fcn.004a96c3
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 0x40c371
call fcn.004104c1
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.004109e8
lea eax, [ebp - 0x18]
push eax
call fcn.00404383
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 0x40c3a2
mov eax, 0x4bb21c
push eax
push 3
mov ebx, 0x19c
call fcn.004ab330
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 0x40c3ce
push ebx
call fcn.004a96c3
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40c3e6
and eax, 0xff
jmp 0x40c43b
cmp ecx, 0x80000201
jne 0x40c3f1
cwde
jmp 0x40c43b
cmp ecx, 0x80000301
je 0x40c43b
cmp ecx, 0x80000401
je 0x40c43b
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40c42b
cmp ecx, 0x80000601
je 0x40c430
push 0xaa7
push 0x4027388
push 2
call fcn.004a96c9
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40c436
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.004015c2
mov dword [0x4c2871], eax
mov dword [0x4c2795], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c466
push eax
mov ebx, eax
call fcn.00401343
inc eax
push eax
call fcn.004a96bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c49a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c4ab
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c4bb
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40c4cb
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c4db
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c4eb
push ebx
call fcn.004a96c3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret