Function at 0x40b74c
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 0x40b791
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 [0x4b50a1]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b7fc
push 0x52
push 0x402cd9c
push 6
call fcn.0049c19e
add esp, 0xc
cmp dword [0x4b4e5d], 0
je 0x40b81d
cmp dword [0x4b4d81], 0
jne 0x40b81d
mov eax, 1
jmp 0x40b822
mov eax, 0
test eax, eax
je 0x40b870
push 0x80000301
push 0
push dword [0x4b4e5d]
push 1
mov ebx, 0x198
call fcn.0049e5b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b5d3
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b868
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40bffe
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40b8b9
cmp dword [0x4b4d79], 0xffffffff
je 0x40b8b9
xor eax, eax
jmp 0x40b8be
mov eax, 1
test eax, eax
je 0x40b90c
call fcn.0040c054
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b8f4
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b908
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40b955
cmp dword [0x4b4d79], 0xffffffff
je 0x40b955
xor eax, eax
jmp 0x40b95a
mov eax, 1
test eax, eax
je 0x40b9a8
call fcn.0040c123
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b990
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b9a4
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40b9f1
cmp dword [0x4b4d79], 0xffffffff
je 0x40b9f1
xor eax, eax
jmp 0x40b9f6
mov eax, 1
test eax, eax
je 0x40ba44
call fcn.0040c3a6
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ba2c
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ba40
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40ba8d
cmp dword [0x4b4d79], 0xffffffff
je 0x40ba8d
xor eax, eax
jmp 0x40ba92
mov eax, 1
test eax, eax
je 0x40bae0
call fcn.0040c478
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bac8
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40badc
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40bb29
cmp dword [0x4b4d79], 0xffffffff
je 0x40bb29
xor eax, eax
jmp 0x40bb2e
mov eax, 1
test eax, eax
je 0x40bb96
call fcn.0040c794
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0049d600
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bb7e
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bb92
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40bbdf
cmp dword [0x4b4d79], 0xffffffff
je 0x40bbdf
xor eax, eax
jmp 0x40bbe4
mov eax, 1
test eax, eax
je 0x40bc32
call fcn.0040c80b
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bc1a
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bc2e
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40bc7b
cmp dword [0x4b4d79], 0xffffffff
je 0x40bc7b
xor eax, eax
jmp 0x40bc80
mov eax, 1
test eax, eax
je 0x40bcce
call fcn.0040cf45
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bcb6
push ebx
call fcn.0049c198
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bcca
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4b4d79]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.0049d560
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40bd1a
cmp dword [0x4b4d79], 0xffffffff
je 0x40bd1a
xor eax, eax
jmp 0x40bd1f
mov eax, 1
test eax, eax
je 0x40bd71
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040e129
test eax, eax
je 0x40bd71
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.0040151b
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bd6d
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4b4d7d]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040151b
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bd9e
push ebx
call fcn.0049c198
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 0x40bdb5
mov eax, 0x4ae20b
push eax
push 1
mov ebx, 0x130
call fcn.0049e680
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40be44
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4ae93b
push 0x4ae946
push 0
xor eax, eax
call dword [0x4b50c5]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40be1c
push 0x8d8
push 0x402cd9c
push 6
call fcn.0049c19e
add esp, 0xc
push 0
call fcn.0049c17a
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40be44
push 0
mov ebx, 0x350
call fcn.0049e020
add esp, 4
jmp 0x40be26
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40be57
mov eax, 0x4ae20b
push eax
push 1
mov ebx, 0x198
call fcn.0049e5b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40be81
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b53c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bea5
push ebx
call fcn.0049c198
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 0x40bed5
call fcn.00410025
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0041054c
lea eax, [ebp - 0x18]
push eax
call fcn.00403ee7
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 0x40bf06
mov eax, 0x4ae21c
push eax
push 3
mov ebx, 0x19c
call fcn.0049ddf0
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 0x40bf32
push ebx
call fcn.0049c198
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40bf4a
and eax, 0xff
jmp 0x40bf9f
cmp ecx, 0x80000201
jne 0x40bf55
cwde
jmp 0x40bf9f
cmp ecx, 0x80000301
je 0x40bf9f
cmp ecx, 0x80000401
je 0x40bf9f
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40bf8f
cmp ecx, 0x80000601
je 0x40bf94
push 0xaa7
push 0x402cd9c
push 2
call fcn.0049c19e
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40bf9a
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.004015ce
mov dword [0x4b4e5d], eax
mov dword [0x4b4d81], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bfca
push eax
mov ebx, eax
call fcn.00401343
inc eax
push eax
call fcn.0049c192
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bffe
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c00f
push ebx
call fcn.0049c198
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c01f
push ebx
call fcn.0049c198
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40c02f
push ebx
call fcn.0049c198
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c03f
push ebx
call fcn.0049c198
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c04f
push ebx
call fcn.0049c198
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret