Function at 0x100166a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push esi
mov dword [ebp - 0x50], 0x53a7
mov dword [ebp - 0xb8], 0x10007e5c
cmp dword [ebp - 0x50], 0x55af
jle 0x10016753
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
and dword [ebp - 0x20], 0
jmp 0x100166ec
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x15f4
jge 0x10016753
and dword [ebp - 0x18], 0
jmp 0x10016702
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x111
jge 0x10016751
and dword [ebp - 0x10], 0
jmp 0x10016718
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6d8d
jge 0x1001674f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x10016711
jmp 0x100166fb
jmp 0x100166e5
movzx eax, byte [ebp + 0x3c]
test eax, eax
je 0x10016818
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x100167e3
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100167c4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x100167e1
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10020c90
mov dword [eax], 0xd0da0bdb
jmp 0x100167b9
jmp 0x10016813
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
sub eax, 0xc
cdq
push 0x7e
pop ecx
idiv ecx
sub eax, 0xc
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
jmp 0x10016acc
jmp 0x10016ab3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x10016aa7
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 0x45fd
mov dword [ebp - 0x98], 0x10007e70
cmp dword [ebp - 0x4c], 0x489a
jle 0x1001698a
and dword [ebp - 0x24], 0
jmp 0x100168f3
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x61cc
jge 0x1001698a
and dword [ebp - 0x14], 0
jmp 0x1001690d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x31be
jge 0x10016985
and dword [ebp - 0x1c], 0
jmp 0x10016923
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2869
jge 0x10016983
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
sar eax, cl
cdq
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xec]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0xec]
call fcn.100208ae
jmp 0x1001691c
jmp 0x10016906
jmp 0x100168ec
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x4c], 0x45bd
jge 0x100169a8
push dword [ebp - 0x98]
call fcn.1006abb3
pop ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10020c90
cmp dword [eax], 0
je 0x100169ef
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x100169ef
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10020c90
cmp dword [eax], 0
je 0x100169ef
mov dword [ebp - 0x34], 1
jmp 0x100169f3
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10020c90
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x44]
mov dword [eax], ecx
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10020c90
sub esi, dword [eax]
mov eax, dword [ebp - 0x38]
cmp esi, dword [eax]
je 0x10016a2e
mov dword [ebp - 0x2c], 1
jmp 0x10016a32
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jg 0x10016a45
mov dword [ebp - 0x30], 1
jmp 0x10016a49
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10020c90
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jne 0x10016a6e
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x10016a6e
mov dword [ebp - 0x40], 1
jmp 0x10016a72
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jne 0x10016a85
mov dword [ebp - 0x48], 1
jmp 0x10016a89
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
imul eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x10016ab3
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
cmp dword [ebp - 0x50], 0x5103
jge 0x10016acc
mov edx, dword [ebp - 0xb8]
mov ecx, 0x10085b58
call fcn.10023628
pop esi
mov esp, ebp
pop ebp
ret