Function at 0x100870e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2e4
mov ecx, dword [esp + 0x2fc]
mov eax, 0x80
cmp ecx, 0xef6
mov edx, 0x86
push ebp
mov ebp, 0x100
cmovl ebp, eax
xor eax, eax
cmp ecx, 0xef6
mov dword [esp + 0x54], ebp
setge al
add eax, 0xb
mov dword [esp + 0x80], eax
xor eax, eax
cmp ecx, 0xef6
setge al
add eax, 0xa
cmp ecx, 0xef6
mov ecx, dword [esp + 0x2f4]
mov dword [esp + 0x98], eax
mov eax, 0x106
cmovl eax, edx
cmp ecx, eax
jge 0x10087175
lea eax, [ecx*4]
push eax
push dword [esp + 0x2f0]
push dword [esp + 0x2f8]
call fcn.1008bac0
add esp, 0xc
pop ebp
add esp, 0x2e4
ret 0x18
mov eax, dword [esp + 0x2f0]
push ebx
push esi
push edi
lea esi, [ebp*4]
push esi
push dword [esp + 0x2fc]
push eax
call fcn.1008bac0
push 0x200
lea eax, [esp + 0x104]
push 0
push eax
call fcn.1008b230
mov eax, dword [esp + 0x310]
add esp, 0x18
mov edx, dword [esi + eax - 4]
lea ebx, [esi + eax]
mov edi, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], 0x40
mov ecx, dword [eax + ebp*4 - 8]
sub edi, ecx
mov eax, dword [eax + ebp*4 - 0xc]
add edi, edi
mov ebp, dword [ebx - 4]
sub eax, ecx
mov ecx, dword [ebx - 8]
add ebp, ebp
sub ebp, ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x68], 0x73
mov ecx, 1
lea eax, [edx + eax*8]
mov dword [esp + 0x78], 0x40
mov edx, dword [esp + 0x2fc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x7c], 0x2e4
mov dword [esp + 0x6c], 0
lea eax, [esi + edx]
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0x60]
mov dword [esp + 0x80], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x70], eax
mov eax, dword [edx + ecx*4 - 4]
add dword [edx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x10087240
mov ebp, dword [esp + 0x300]
push 2
push ebp
call fcn.10097dd0
mov ebx, eax
push 2
push ebp
mov dword [esp + 0xac], ebx
call fcn.10097dd0
mov ebp, dword [esp + 0x70]
add esp, 0x10
mov edi, dword [esp + 0x2f8]
xor edx, edx
sub ebx, eax
mov dword [esp + 0xa0], eax
mov esi, eax
mov dword [esp + 0x88], ebx
nop
mov ecx, dword [edi + edx*4]
lea esi, [esi + 2]
sar ecx, 0x1e
and ecx, 2
dec ecx
mov word [ebx + esi - 2], cx
mov ax, word [edi + edx*4]
inc edx
mov word [esi - 2], ax
cmp edx, ebp
jl 0x10087290
mov eax, dword [esp + 0x2fc]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x300]
mov edx, ebp
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x5c]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x34], 0
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x98], edx
movups xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xa8], ecx
movups xmmword [esp + 0xe0], xmm0
cmp dword [esp + 0x80], ecx
jae 0x1008796e
mov ecx, dword [esp + 0x9c]
mov esi, ebx
sub esi, dword [esp + 0x2f8]
add esi, eax
mov eax, edx
mov dword [esp + 0x74], esi
lea eax, [ecx + eax*2]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x5c], eax
sub eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
nop dword [eax]
cmp dword [esp + 0x308], 0
jle 0x10087414
mov eax, edx
cdq
idiv dword [esp + 0x308]
test edx, edx
jne 0x10087414
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x30c], 0xef6
jl 0x10087723
mov edx, dword [ebx]
test edx, edx
jne 0x100874a6
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
imul ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
imul ecx, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
imul ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
imul ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
imul ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
add eax, ecx
jmp 0x1008771c
jle 0x100875cc
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
dec ebx
imul eax, dword [esp + 0x34]
sar esi, 0x1e
and esi, 2
add ebx, esi
mov esi, ecx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x3c]
imul ecx, ebx
dec ebx
mov dword [esp + 0x2c], esi
add eax, ecx
mov ecx, dword [esp + 0x28]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x40]
imul ecx, ebx
dec ebx
add eax, ecx
mov ecx, dword [esp + 0x14]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x44]
imul ecx, ebx
dec ebx
add eax, ecx
mov ecx, dword [esp + 0x18]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x48]
imul ecx, ebx
dec ebx
add eax, ecx
mov ecx, dword [esp + 0x1c]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x4c]
imul ecx, ebx
dec ebx
add eax, ecx
mov ecx, dword [esp + 0x20]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x50]
imul ecx, ebx
dec ebx
add eax, ecx
mov ecx, dword [esp + 0x10]
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov ecx, ebx
imul ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x24]
dec ebx
sar ecx, 0x1e
and ecx, 2
add ebx, ecx
mov ecx, edx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x24], ecx
jmp 0x1008771c
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sar ecx, 0x1e
and ecx, 2
imul eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov ecx, 1
sub ecx, dword [esp + 0x2c]
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
imul ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x28]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x28], ecx
mov ecx, 1
sub ecx, dword [esp + 0x28]
add dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
imul ecx, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x14]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, 1
sub ecx, dword [esp + 0x14]
add dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x18]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, 1
sub ecx, dword [esp + 0x18]
add dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
imul ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x1c]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x1c], ecx
mov ecx, 1
sub ecx, dword [esp + 0x1c]
add dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
imul ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x20]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, 1
sub ecx, dword [esp + 0x20]
add dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
imul ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x10]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x10], ecx
mov ecx, 1
sub ecx, dword [esp + 0x10]
add dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
imul ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x24]
sar ecx, 0x1e
and ecx, 2
mov dword [esp + 0x24], ecx
mov ecx, 1
sub ecx, dword [esp + 0x24]
add dword [esp + 0x54], ecx
mov dword [esp + 0x24], edx
sar eax, 9
sub edx, eax
mov dword [ebx], edx
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x80]
mov ecx, dword [ebx]
mov ax, cx
mov word [esi + edx], ax
mov eax, dword [ebx]
mov esi, dword [esp + 0x74]
sar eax, 0x1e
and eax, 2
dec eax
cmp byte [esp + 0x304], 0
mov word [edx], ax
je 0x1008777c
test ecx, ecx
je 0x1008777c
push dword [esp + 0x60]
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x64]
add eax, ecx
push eax
lea eax, [esp + 0x100]
push eax
push ecx
lea ecx, [esp + 0x47]
call fcn.10086290
jmp 0x100877a1
push dword [esp + 0x60]
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x64]
add eax, ecx
push eax
lea eax, [esp + 0x100]
push eax
push ecx
lea ecx, [esp + 0x47]
call fcn.100857c0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
sar eax, cl
sub dword [ebx], eax
mov ecx, dword [esp + 0x58]
mov ax, word [ebx]
mov word [edx + ecx], ax
mov eax, dword [ebx]
mov edx, dword [esp + 0x90]
sar eax, 0x1e
and eax, 2
dec eax
mov word [ecx], ax
mov eax, edi
imul eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x78]
add ecx, eax
mov eax, edx
imul eax, dword [esp + 0x64]
add ecx, eax
sar ecx, 0xb
add ecx, dword [ebx]
mov dword [esi], ecx
mov eax, dword [ebx]
test eax, eax
jle 0x10087832
mov ecx, dword [esp + 0x38]
mov eax, 1
sar edx, 0x1e
and edx, 2
sar edi, 0x1c
sub eax, edx
sar ecx, 0x1c
add dword [esp + 0x64], eax
and edi, 8
mov eax, 4
and ecx, 8
sub eax, edi
add dword [esp + 0x68], eax
mov eax, 4
sub eax, ecx
add dword [esp + 0x78], eax
jmp 0x1008786f
jns 0x1008786f
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
dec eax
sar edx, 0x1e
add ecx, 0xfffffffc
and edx, 2
sar edi, 0x1c
add eax, edx
and edi, 8
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffffc
add eax, edi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
sar eax, 0x1c
and eax, 8
add ecx, eax
mov dword [esp + 0x78], ecx
mov esi, dword [esi]
mov edx, ebp
mov eax, dword [esp + 0x94]
mov edi, esi
sub eax, dword [esp + 0x38]
imul edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0xa4]
lea eax, [esi + eax*8]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
sub edi, eax
mov dword [esp + 0x94], eax
add edi, edi
mov eax, dword [esp + 0x70]
imul eax, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
sub edx, eax
mov eax, dword [esp + 0x38]
sar edx, cl
add edx, esi
mov esi, dword [esp + 0x74]
mov dword [esi], edx
test eax, eax
jle 0x100878ee
mov ecx, dword [esp + 0x6c]
mov eax, 2
sar ebp, 0x1d
dec ecx
and ebp, 4
sub eax, ebp
add dword [esp + 0x7c], eax
mov eax, dword [esp + 0x70]
sar eax, 0x1e
and eax, 2
add ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x10087918
jns 0x10087918
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
add eax, 0xfffffffe
sar ebp, 0x1d
and ebp, 4
sar ecx, 0x1e
add eax, ebp
and ecx, 2
mov dword [esp + 0x7c], eax
mov eax, 1
sub eax, ecx
add dword [esp + 0x6c], eax
mov ecx, dword [esi - 4]
lea ebp, [edx + edx]
sub ebp, dword [esp + 0x70]
add ebx, 4
add dword [esp + 0x5c], 2
add dword [esp + 0x58], 2
shl ecx, 5
sub ecx, dword [esi - 4]
sar ecx, 5
add ecx, edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x98]
mov dword [esi], ecx
inc edx
mov ecx, dword [esp + 0x28]
add esi, 4
mov dword [esp + 0x84], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x98], edx
cmp esi, dword [esp + 0xa8]
jb 0x100873f0
push dword [esp + 0x9c]
call fcn.1009783c
push dword [esp + 0xa4]
call fcn.1009783c
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x2e4
ret 0x18