Function at 0x40afc8
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 0x40b00d
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 [0x4c2a07]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b078
push 0x52
push 0x4026d11
push 6
call fcn.004a95cd
add esp, 0xc
cmp dword [0x4c276f], 0
je 0x40b099
cmp dword [0x4c2773], 0
jne 0x40b099
mov eax, 1
jmp 0x40b09e
mov eax, 0
test eax, eax
je 0x40b0ec
push 0x80000301
push 0
push dword [0x4c276f]
push 1
mov ebx, 0x198
call fcn.004ab2a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ae4f
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b0e4
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40b87a
push 0x80000301
push 0
push dword [0x4c2777]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40b135
cmp dword [0x4c2777], 0xffffffff
je 0x40b135
xor eax, eax
jmp 0x40b13a
mov eax, 1
test eax, eax
je 0x40b188
call fcn.0040b8d0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b170
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b184
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40b1d1
cmp dword [0x4c2777], 0xffffffff
je 0x40b1d1
xor eax, eax
jmp 0x40b1d6
mov eax, 1
test eax, eax
je 0x40b224
call fcn.0040b99f
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b20c
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b220
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40b26d
cmp dword [0x4c2777], 0xffffffff
je 0x40b26d
xor eax, eax
jmp 0x40b272
mov eax, 1
test eax, eax
je 0x40b2c0
call fcn.0040bc22
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b2a8
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b2bc
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40b309
cmp dword [0x4c2777], 0xffffffff
je 0x40b309
xor eax, eax
jmp 0x40b30e
mov eax, 1
test eax, eax
je 0x40b35c
call fcn.0040bcf4
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b344
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b358
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40b3a5
cmp dword [0x4c2777], 0xffffffff
je 0x40b3a5
xor eax, eax
jmp 0x40b3aa
mov eax, 1
test eax, eax
je 0x40b412
call fcn.0040c010
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b3fa
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b40e
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40b45b
cmp dword [0x4c2777], 0xffffffff
je 0x40b45b
xor eax, eax
jmp 0x40b460
mov eax, 1
test eax, eax
je 0x40b4ae
call fcn.0040c087
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b496
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b4aa
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40b4f7
cmp dword [0x4c2777], 0xffffffff
je 0x40b4f7
xor eax, eax
jmp 0x40b4fc
mov eax, 1
test eax, eax
je 0x40b54a
call fcn.0040c7c1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b532
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b546
push ebx
call fcn.004a95c7
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.004aa930
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40b596
cmp dword [0x4c2777], 0xffffffff
je 0x40b596
xor eax, eax
jmp 0x40b59b
mov eax, 1
test eax, eax
je 0x40b5ed
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040d9a5
test eax, eax
je 0x40b5ed
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.0040185d
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b5e9
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4c277b]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b61a
push ebx
call fcn.004a95c7
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 0x40b631
mov eax, 0x4bb3e2
push eax
push 1
mov ebx, 0x130
call fcn.004ab370
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b6c0
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4bba8d
push 0x4bba98
push 0
xor eax, eax
call dword [0x4c2a2b]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b698
push 0x8d8
push 0x4026d11
push 6
call fcn.004a95cd
add esp, 0xc
push 0
call fcn.004a95a9
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40b6c0
push 0
mov ebx, 0x350
call fcn.004aaa00
add esp, 4
jmp 0x40b6a2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b6d3
mov eax, 0x4bb3e2
push eax
push 1
mov ebx, 0x198
call fcn.004ab2a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b6fd
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040adb8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b721
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f8a1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b751
call fcn.0040f99c
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0040fec3
lea eax, [ebp - 0x18]
push eax
call fcn.00403742
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 0x40b782
mov eax, 0x4bb3f9
push eax
push 3
mov ebx, 0x19c
call fcn.004ab820
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 0x40b7ae
push ebx
call fcn.004a95c7
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40b7c6
and eax, 0xff
jmp 0x40b81b
cmp ecx, 0x80000201
jne 0x40b7d1
cwde
jmp 0x40b81b
cmp ecx, 0x80000301
je 0x40b81b
cmp ecx, 0x80000401
je 0x40b81b
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40b80b
cmp ecx, 0x80000601
je 0x40b810
push 0xaa7
push 0x4026d11
push 2
call fcn.004a95cd
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40b816
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401910
mov dword [0x4c276f], eax
mov dword [0x4c2773], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b846
push eax
mov ebx, eax
call fcn.004017f2
inc eax
push eax
call fcn.004a95c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b87a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b88b
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b89b
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b8ab
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b8bb
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b8cb
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret