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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
imul eax, esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
add eax, edi
mov ecx, 0x100f8ed8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
lea ecx, [eax + eax*2]
xor ebp, ebp
xor ebx, ebx
lea ecx, [ecx + ecx*4]
cmp edi, ebp
mov dword [esp + 0x18], ebx
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x28], ebp
lea ecx, [edx + ecx*4 + 0xd4]
mov dword [esp + 0x1c], ecx
je 0x1008a031
mov ecx, dword [esp + 0x4c]
inc ecx
cmp eax, ecx
jl 0x1008a031
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
lea ecx, [edx + ecx*8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx - 0xfc]
cmp ecx, 3
je 0x1008a01d
cmp ecx, 4
jne 0x1008a031
mov ecx, dword [esp + 0x20]
lea ebp, [ecx - 0x1c8]
mov ecx, dword [ecx - 0xf8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
add ecx, esi
cmp eax, ecx
mov dword [esp + 0x4c], ecx
jl 0x1008a075
mov ecx, eax
sub ecx, esi
lea ebx, [ecx + ecx*2]
lea ebx, [ebx + ebx*4]
lea ecx, [ecx + ebx*4]
mov ebx, dword [edx + ecx*8 + 0xec]
cmp ebx, 3
lea ecx, [edx + ecx*8]
je 0x1008a060
cmp ebx, 4
jne 0x1008a071
lea ebx, [ecx + 0x20]
mov ecx, dword [ecx + 0xf0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x1008a0ad
mov ecx, dword [esp + 0x4c]
inc ecx
cmp eax, ecx
jl 0x1008a0ad
mov ecx, eax
sub ecx, esi
lea esi, [ecx + ecx*2]
lea esi, [esi + esi*4]
lea ecx, [ecx + esi*4]
lea esi, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 - 0xfc]
cmp ecx, 3
je 0x1008a0a3
cmp ecx, 4
jne 0x1008a0ad
add esi, 0xfffffe38
mov dword [esp + 0x28], esi
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
cmp ecx, 5
lea eax, [edx + eax*8 + 0x20]
ja case.default.0x1008a0c7
jmp dword [ecx*4 + 0x1008a2cc]
test ebp, ebp
je 0x1008a0d9
add ebp, 0x1e
mov dword [esp + 0x34], ebp
test ebx, ebx
je 0x1008a0e4
add ebx, 0x3c
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
test eax, eax
je case.default.0x1008a0c7
add eax, 0x5a
jmp 0x1008a1a7
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x34], eax
test ebx, ebx
mov dword [esp + 0x14], ebp
je 0x1008a1af
lea ecx, [ebx + 0x5a]
add ebx, 0x3c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
jmp 0x1008a1af
test ebp, ebp
je 0x1008a131
lea edx, [ebp + 0x5a]
add ebp, 0x1e
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp case.default.0x1008a0c7
lea ecx, [eax + 0x3c]
lea edx, [eax + 0x1e]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], ecx
jmp 0x1008a1a7
test ebp, ebp
je 0x1008a166
add ebp, 0x78
mov dword [esp + 0x34], ebp
test ebx, ebx
je 0x1008a171
add ebx, 0x78
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
test eax, eax
je case.default.0x1008a0c7
add eax, 0x78
jmp 0x1008a1a7
test ebp, ebp
je 0x1008a18c
add ebp, 0x96
mov dword [esp + 0x34], ebp
test ebx, ebx
je 0x1008a19a
add ebx, 0x96
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
test eax, eax
je case.default.0x1008a0c7
add eax, 0x96
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
movsx ecx, word [eax]
movsx eax, word [ebx]
sub eax, ecx
cdq
mov esi, eax
mov eax, ecx
xor esi, edx
sub esi, edx
movsx edx, word [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
jge 0x1008a254
mov dword [eax], 1
mov cx, word [edi]
test cx, cx
jle 0x1008a1fb
mov eax, esi
movsx ecx, cx
sar eax, 1
add eax, ecx
jmp 0x1008a204
mov edx, esi
movsx eax, cx
sar edx, 1
sub eax, edx
cdq
idiv esi
mov ecx, dword [esp + 0x48]
mov ebx, 7
sub edi, ecx
lea esi, [ecx + 2]
mov word [ecx], ax
movsx ecx, word [edi + esi]
test ecx, ecx
je 0x1008a241
imul ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1008a234
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1008a243
mov edx, ebp
mov eax, ecx
sar edx, 1
sub eax, edx
cdq
idiv ebp
jmp 0x1008a243
xor eax, eax
mov word [esi], ax
add esi, 2
dec ebx
jne 0x1008a218
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [eax], 2
mov cx, word [ebx]
test cx, cx
jle 0x1008a26d
mov eax, esi
movsx ecx, cx
sar eax, 1
add eax, ecx
jmp 0x1008a276
mov edx, esi
movsx eax, cx
sar edx, 1
sub eax, edx
cdq
idiv esi
mov ecx, dword [esp + 0x48]
mov esi, 1
lea edi, [ebx + 0x10]
mov word [ecx], ax
movsx ecx, word [edi]
test ecx, ecx
je 0x1008a2b0
imul ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x1008a2a3
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1008a2b2
mov edx, ebp
mov eax, ecx
sar edx, 1
sub eax, edx
cdq
idiv ebp
jmp 0x1008a2b2
xor eax, eax
mov ecx, dword [esp + 0x48]
inc esi
add edi, 2
cmp esi, 8
mov word [ecx + esi*2 - 2], ax
jb 0x1008a288
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret