Function at 0x41953b
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 0x419580
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
call dword [0x5f5ef2]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4195e1
push 6
call fcn.0046cc8f
add esp, 4
cmp dword [0x5f5e72], 0
je 0x419602
cmp dword [0x5f5d8e], 0
jne 0x419602
mov eax, 1
jmp 0x419607
mov eax, 0
test eax, eax
je 0x419655
push 0x80000301
push 0
push dword [0x5f5e72]
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004193c2
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41964d
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x419dcf
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x41969e
cmp dword [0x5f5d86], 0xffffffff
je 0x41969e
xor eax, eax
jmp 0x4196a3
mov eax, 1
test eax, eax
je 0x4196f1
call fcn.00419e25
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4196d9
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4196ed
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x41973a
cmp dword [0x5f5d86], 0xffffffff
je 0x41973a
xor eax, eax
jmp 0x41973f
mov eax, 1
test eax, eax
je 0x41978d
call fcn.00419eea
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419775
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419789
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x4197d6
cmp dword [0x5f5d86], 0xffffffff
je 0x4197d6
xor eax, eax
jmp 0x4197db
mov eax, 1
test eax, eax
je 0x419829
call fcn.0041a163
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419811
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419825
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x419872
cmp dword [0x5f5d86], 0xffffffff
je 0x419872
xor eax, eax
jmp 0x419877
mov eax, 1
test eax, eax
je 0x4198c5
call fcn.0041a22b
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4198ad
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4198c1
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x41990e
cmp dword [0x5f5d86], 0xffffffff
je 0x41990e
xor eax, eax
jmp 0x419913
mov eax, 1
test eax, eax
je 0x41997b
call fcn.0041a547
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0046dda0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x419963
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419977
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x4199c4
cmp dword [0x5f5d86], 0xffffffff
je 0x4199c4
xor eax, eax
jmp 0x4199c9
mov eax, 1
test eax, eax
je 0x419a17
call fcn.0041a5b4
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4199ff
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419a13
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x419a60
cmp dword [0x5f5d86], 0xffffffff
je 0x419a60
xor eax, eax
jmp 0x419a65
mov eax, 1
test eax, eax
je 0x419ab3
call fcn.0041acb2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419a9b
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419aaf
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x5f5d86]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.0046d8c0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x419aff
cmp dword [0x5f5d86], 0xffffffff
je 0x419aff
xor eax, eax
jmp 0x419b04
mov eax, 1
test eax, eax
je 0x419b56
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0041bde2
test eax, eax
je 0x419b56
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.004126dc
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419b52
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x5f5d8a]
push dword [ebp - 4]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419b83
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x419b9a
mov eax, 0x4992db
push eax
push 1
mov ebx, 0x130
call fcn.0046da50
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x419c1f
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x5f1007
push 0x5f1012
push 0
call dword [0x5f5f62]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x419bf7
push 6
call fcn.0046cc8f
add esp, 4
push 0
call fcn.0046cc6b
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x419c1f
push 0
mov ebx, 0x350
call fcn.0046fa70
add esp, 4
jmp 0x419c01
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x419c32
mov eax, 0x4992db
push eax
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x419c5c
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041932b
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x419c80
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040124b
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x419cb0
call fcn.00410abf
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0041dbee
lea eax, [ebp - 0x18]
push eax
call fcn.0040c15a
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 0x419ce1
mov eax, 0x4996d7
push eax
push 3
mov ebx, 0x19c
call fcn.0046e6a0
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 0x419d0d
push ebx
call fcn.0046cc7d
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x419d25
and eax, 0xff
jmp 0x419d70
cmp ecx, 0x80000201
jne 0x419d30
cwde
jmp 0x419d70
cmp ecx, 0x80000301
je 0x419d70
cmp ecx, 0x80000401
je 0x419d70
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x419d60
cmp ecx, 0x80000601
je 0x419d65
push 2
call fcn.0046cc8f
add esp, 4
fld dword [ebp - 0x30]
jmp 0x419d6b
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401925
mov dword [0x5f5e72], eax
mov dword [0x5f5d8e], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419d9b
push eax
mov ebx, eax
call fcn.00401346
inc eax
push eax
call fcn.0046cc83
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x419dcf
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419de0
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x419df0
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x419e00
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x419e10
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x419e20
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret