Function at 0x10016100
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 8
call fcn.100a8a34
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x100ba4a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
push 0x198
call fcn.100a8a34
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x100baf50
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
jmp 0x100161bc
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
mov dword [ebp - 0x44], esp
push 0
xor eax, eax
call dword [0x100c1bb0]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x10016225
push 0x18
push 0x40270f8
push 6
call fcn.100a8a40
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push ecx
mov eax, dword fs:[0x18]
add eax, 0x100
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
add eax, 4
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10016a9f
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001628e
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x100baf34
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100162c5
mov eax, 0x100ba4a0
push eax
push 3
mov ebx, 0x1c4
call fcn.100abb60
add esp, 0x28
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100162fd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100162f9
imul eax, dword [ebx]
jmp 0x100162ee
mov ecx, eax
test ecx, ecx
je 0x1001631c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10016315
push ebx
push eax
call fcn.100a8a3a
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10016303
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10001217
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10016347
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x194
call fcn.100a97e0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.100a9620
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 8
call fcn.100a8a34
add esp, 4
mov dword [ebp - 0x50], eax
mov edi, eax
mov esi, 0x100ba4a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
call fcn.10015a20
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x100163b4
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x50]
push ebx
call fcn.100a8a3a
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x10016447
mov ebx, dword [ebp - 0x2c]
call fcn.100027c5
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x1001640a
push 0x36b
push 0x40270f8
push 4
call fcn.100a8a40
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016427
push 0x36b
push 0x40270f8
push 1
call fcn.100a8a40
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.100037c1
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x100163d5
add esp, 8
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x100164c6
mov ebx, dword [0x100c192c]
call fcn.100027c5
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10016489
push 0x3e8
push 0x40270f8
push 4
call fcn.100a8a40
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100164a6
push 0x3e8
push 0x40270f8
push 1
call fcn.100a8a40
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.100037c1
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x10016451
add esp, 8
push 0x9fb
push 0x64
call fcn.100037c1
mov dword [0x100c1930], eax
mov ebx, dword [ebp - 0x1c]
call fcn.10003e79
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 8
jne 0x100169ba
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 8
jg 0x100166af
cmp dword [ebp - 0x28], 8
je 0x100165f9
mov ebx, dword [ebp - 0x1c]
call fcn.100027c5
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10016538
push 0x567
push 0x40270f8
push 4
call fcn.100a8a40
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016555
push 0x567
push 0x40270f8
push 1
call fcn.100a8a40
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.10008fb4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 0x80000101
push 0
push 0x2a
push 1
mov ebx, 0x140
call fcn.100ab5a0
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 3
call fcn.10003e1d
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x100165cc
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x100165dc
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x100165f0
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
jmp 0x100166a8
mov ebx, dword [ebp - 0x1c]
call fcn.100027c5
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10016620
push 0x5ec
push 0x40270f8
push 4
call fcn.100a8a40
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1001663d
push 0x5ec
push 0x40270f8
push 1
call fcn.100a8a40
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.10008fb4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 2
call fcn.10003e1d
add esp, 8
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x10016690
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x100166a4
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
pop ebx
pop ecx
jmp 0x100164f9
add esp, 8
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100166d0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100166cc
imul eax, dword [ebx]
jmp 0x100166c1
mov ecx, eax
test ecx, ecx
je 0x100166ef
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100166e8
push ebx
push eax
call fcn.100a8a3a
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100166d6
call fcn.100a8a3a
add esp, 4
mov eax, 0x100ba4a0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x83a3ee9c
mov dword [ebp - 0x38], 0xa860f3ec
mov eax, dword fs:[0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.10016da3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [0x100c1934]
test ebx, ebx
je 0x1001673c
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [0x100c1934], eax
push 0x100c1934
call fcn.1000abae
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10016763
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [0x100c1934]
test eax, eax
jne 0x1001677c
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x194
call fcn.100a97e0
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
push 0x100ba7c8
push 0x80000301
push 0
push dword [ebp - 0x44]
push 2
mov ebx, 0x1c0
call fcn.100ab300
add esp, 0x1c
mov dword [ebp - 0x48], eax
push 0x100c1934
call fcn.10001217
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x100167e8
mov eax, 0x100ba4a0
push eax
push 3
mov ebx, 0x914
call fcn.100aba80
add esp, 0x28
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1001680b
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x1001681e
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x10016847
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000301
push 0
push dword [ebp - 0x34]
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100147fa
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x100168aa
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x100168ba
push ebx
call fcn.100a8a3a
add esp, 4
push 0x80000301
push 0
push dword [0x100c1838]
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push 0x100baf40
push dword [ebp - 0x54]
push 0x100baf40
push dword [ebp - 0x44]
mov ecx, 5
call fcn.10003597
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x10016912
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x10016922
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x10016932
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x10016949
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.10001217
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x1001696c
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x194
call fcn.100a97e0
add esp, 0x10
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x100ba794]
fstp qword [ebp - 0x58]
push 0x80000601
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 1
mov ebx, 0x9dc
call fcn.100a97f0
add esp, 0x10
push eax
push dword [ebp - 0x44]
call fcn.10017e77
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x100169d4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10016a08
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10016a19
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10016a37
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10016a33
imul eax, dword [ebx]
jmp 0x10016a28
mov ecx, eax
test ecx, ecx
je 0x10016a56
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10016a4f
push ebx
push eax
call fcn.100a8a3a
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10016a3d
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10016a7a
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10016a8a
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x10016a9a
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret