Function at 0x42dfe9
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 0x42e02e
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 [0x4f55d7]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x42e099
push 0x52
push 0x4026a5a
push 6
call fcn.004797ac
add esp, 0xc
cmp dword [0x4f556b], 0
je 0x42e0ba
cmp dword [0x4f5493], 0
jne 0x42e0ba
mov eax, 1
jmp 0x42e0bf
mov eax, 0
test eax, eax
je 0x42e10d
push 0x80000301
push 0
push dword [0x4f556b]
push 1
mov ebx, 0x198
call fcn.0047ad70
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042de70
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e105
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x42e89b
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x42e156
cmp dword [0x4f548b], 0xffffffff
je 0x42e156
xor eax, eax
jmp 0x42e15b
mov eax, 1
test eax, eax
je 0x42e1a9
call fcn.0042e8f1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e191
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e1a5
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x42e1f2
cmp dword [0x4f548b], 0xffffffff
je 0x42e1f2
xor eax, eax
jmp 0x42e1f7
mov eax, 1
test eax, eax
je 0x42e245
call fcn.0042e9c0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e22d
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e241
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x42e28e
cmp dword [0x4f548b], 0xffffffff
je 0x42e28e
xor eax, eax
jmp 0x42e293
mov eax, 1
test eax, eax
je 0x42e2e1
call fcn.0042ec43
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e2c9
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e2dd
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x42e32a
cmp dword [0x4f548b], 0xffffffff
je 0x42e32a
xor eax, eax
jmp 0x42e32f
mov eax, 1
test eax, eax
je 0x42e37d
call fcn.0042ed15
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e365
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e379
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x42e3c6
cmp dword [0x4f548b], 0xffffffff
je 0x42e3c6
xor eax, eax
jmp 0x42e3cb
mov eax, 1
test eax, eax
je 0x42e433
call fcn.0042f031
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0047b0d0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x42e41b
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e42f
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x42e47c
cmp dword [0x4f548b], 0xffffffff
je 0x42e47c
xor eax, eax
jmp 0x42e481
mov eax, 1
test eax, eax
je 0x42e4cf
call fcn.0042f0a8
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e4b7
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e4cb
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x42e518
cmp dword [0x4f548b], 0xffffffff
je 0x42e518
xor eax, eax
jmp 0x42e51d
mov eax, 1
test eax, eax
je 0x42e56b
call fcn.0042f7e2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42e553
push ebx
call fcn.004797a6
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e567
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4f548b]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.0047ae40
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x42e5b7
cmp dword [0x4f548b], 0xffffffff
je 0x42e5b7
xor eax, eax
jmp 0x42e5bc
mov eax, 1
test eax, eax
je 0x42e60e
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.004309c6
test eax, eax
je 0x42e60e
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.004018b9
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e60a
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4f548f]
push dword [ebp - 4]
mov ecx, 2
call fcn.004018b9
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e63b
push ebx
call fcn.004797a6
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 0x42e652
mov eax, 0x4a02bb
push eax
push 1
mov ebx, 0x130
call fcn.0047bb00
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42e6e1
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x4a1e59
push 0x4a1e64
push 0
xor eax, eax
call dword [0x4f563b]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x42e6b9
push 0x8d8
push 0x4026a5a
push 6
call fcn.004797ac
add esp, 0xc
push 0
call fcn.00479794
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x42e6e1
push 0
mov ebx, 0x350
call fcn.0047b670
add esp, 4
jmp 0x42e6c3
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42e6f4
mov eax, 0x4a02bb
push eax
push 1
mov ebx, 0x198
call fcn.0047ad70
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42e71e
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042ddd9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x42e742
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401255
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42e772
call fcn.0041f09d
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.004328c2
lea eax, [ebp - 0x18]
push eax
call fcn.004113ec
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push htons
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42e7a3
mov eax, 0x4a063e
push eax
push 3
mov ebx, 0x19c
call fcn.0047a970
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 0x42e7cf
push ebx
call fcn.004797a6
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x42e7e7
and eax, 0xff
jmp 0x42e83c
cmp ecx, 0x80000201
jne 0x42e7f2
cwde
jmp 0x42e83c
cmp ecx, 0x80000301
je 0x42e83c
cmp ecx, 0x80000401
je 0x42e83c
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x42e82c
cmp ecx, 0x80000601
je 0x42e831
push 0xaa7
push 0x4026a5a
push 2
call fcn.004797ac
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x42e837
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.0040154e
mov dword [0x4f556b], eax
mov dword [0x4f5493], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42e867
push eax
mov ebx, eax
call fcn.00401350
inc eax
push eax
call fcn.004797b8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42e89b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42e8ac
push ebx
call fcn.004797a6
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42e8bc
push ebx
call fcn.004797a6
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42e8cc
push ebx
call fcn.004797a6
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42e8dc
push ebx
call fcn.004797a6
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x42e8ec
push ebx
call fcn.004797a6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret