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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
xor esi, esi
xor ecx, ecx
mov eax, dword [ebp]
push edi
mov edi, dword [esp + 0xa0]
cmp eax, esi
mov dword [esp + 0x28], esi
jle 0x89e85f
lea ebx, [ebp + 0x24]
mov eax, dword [edi + 0x37e0]
test eax, eax
jne 0x89e81c
cmp dword [edi + 0x74], 1
je 0x89e81c
mov dword [ebx], 0
mov eax, dword [ebp + 0x34]
add ebx, 4
add eax, esi
add esi, 0x18
mov edx, dword [eax + 0x10]
mov dword [esp + ecx*4 + 0x60], edx
mov edx, dword [eax + 0xc]
mov dword [esp + ecx*4 + 0x70], edx
mov edx, dword [eax + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + ecx*4 + 0x80], edx
mov edx, dword [eax + 8]
imul edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov dword [esp + ecx*4 + 0x50], edx
add eax, edx
inc ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
cmp ecx, eax
jl 0x89e806
cmp dword [ebp], 1
jne 0x89e8c1
mov eax, dword [edi + 0x37b8]
mov esi, dword [ebp + 0x34]
shl eax, 3
cdq
idiv dword [esi + 4]
mov ecx, eax
mov eax, dword [edi + 0x37bc]
shl eax, 3
cdq
idiv dword [esi + 8]
xor edx, edx
mov esi, eax
mov eax, dword [edi + 0x3c]
imul eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x4c]
lea eax, [eax + ecx - 1]
div ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x50]
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + esi - 1]
cdq
idiv esi
mov dword [esp + 0x38], eax
mov eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], eax
jmp 0x89e8f2
mov edx, dword [edi + 0x37bc]
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x37b8]
imul eax, edx
shl ecx, 3
shl eax, 3
lea esi, [edx*8]
mov edx, dword [edi + 0x78]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0xa4]
mov eax, ecx
cdq
idiv ebx
mov ecx, eax
mov eax, dword [edi + 4]
cdq
idiv ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov dword [esp + 0x48], eax
mov eax, esi
cdq
idiv ebx
mov ecx, eax
mov eax, dword [edi + 8]
cdq
idiv ecx
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x44], esi
lea eax, [ecx + eax - 1]
cdq
idiv ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x20]
cmp eax, esi
mov dword [esp + 0x24], eax
jg 0x89e94c
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x74]
mov ebx, dword [esp + 0x98]
cmp eax, 1
jne 0x89ea60
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x89ea60
mov eax, dword [ebp + 0x1c]
mov ecx, dword [edi + 0x4834]
test eax, eax
mov dword [esp + 0x1c], ecx
jne 0x89ebc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x89ebc0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x89ea46
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x89ea18
lea edx, [ebp + 0x24]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + esi*4 + 0x50]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x89ea05
mov edi, dword [esp + esi*4 + 0x60]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + esi*4 + 0x74]
push ecx
push edi
push eax
push ebx
call dword [0x60028940]
add esp, 0x14
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x89e9cb
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x2c], ecx
jl 0x89e9b7
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
push edi
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x89e9a7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x89e993
jmp 0x89ebc0
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x89ebc0
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x4830]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*8]
cmp dword [eax], 0xffffffff
jne 0x89eba8
mov ecx, dword [eax - 0x28]
sub eax, 0x28
dec esi
cmp ecx, 0xffffffff
je 0x89ea84
push edi
push ebp
push ebx
push esi
mov dword [esp + 0x24], esi
call fcn.0089f1fc
add esp, 0x10
test eax, eax
jne 0x89f1ce
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x4834]
cmp esi, eax
mov dword [esp + 0x1c], edx
jge 0x89ebc0
lea eax, [esi + 1]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x89eb7c
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x89eb4a
lea ecx, [ebp + 0x24]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + esi*4 + 0x50]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x89eb30
mov edi, dword [esp + esi*4 + 0x60]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + esi*4 + 0x78]
push edi
push eax
push ebx
call dword [0x60028940]
add esp, 0x14
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x89eafd
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x2c], ecx
jl 0x89eae9
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push esi
push edi
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x89ead9
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push edi
push ebp
push ebx
push edx
call fcn.0089f2fc
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
add esp, 0x10
inc esi
inc ecx
cmp esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ecx
jl 0x89eac5
jmp 0x89ebc0
mov eax, dword [esp + 0x24]
push edi
push ebp
push ebx
push eax
call fcn.0089f1fc
add esp, 0x10
test eax, eax
jne 0x89f1ce
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x89f156
lea eax, [eax + eax*4 + 5]
shl eax, 3
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xa0]
mov edi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov edx, dword [ecx + 0x4834]
cmp edi, eax
mov dword [esp + 0x1c], edx
jge 0x89eca2
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x89ec71
lea eax, [ebp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + esi*4 + 0x50]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x89ec5e
mov edi, dword [esp + esi*4 + 0x60]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + esi*4 + 0x70]
push ecx
push edx
push edi
push eax
push ebx
call dword [0x60028940]
add esp, 0x14
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x89ec27
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x30], ecx
jl 0x89ec13
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
push eax
push edi
push ecx
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x89ec03
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x40]
sub eax, esi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
sub edi, edx
and ecx, eax
mov eax, dword [esp + 0x34]
cdq
idiv dword [esp + 0xa4]
imul edi, eax
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x30]
imul edx, dword [esp + 0x3c]
imul edx, ecx
add edi, edx
mov edx, dword [eax + 0x20]
add edi, edx
mov dword [ebx + 0x2c], edi
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jg 0x89ecf3
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
cmp eax, ecx
jge 0x89ef3b
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa0]
xor esi, esi
mov edi, dword [eax + 0x4834]
mov eax, dword [ebp]
test eax, eax
jle 0x89ed84
add ebp, 0x24
mov dword [esp + 0x30], ebp
mov eax, dword [esp + esi*4 + 0x50]
xor ebp, ebp
test eax, eax
jle 0x89ed6b
mov eax, dword [esp + esi*4 + 0x80]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + esi*4 + 0x64]
push edi
push ecx
push eax
mov eax, dword [esp + esi*4 + 0x80]
push eax
push ebx
call dword [0x6002893c]
add esp, 0x18
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + esi*4 + 0x50]
add edi, 0x80
inc ebp
cmp ebp, eax
jl 0x89ed2f
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x30]
inc esi
add ecx, 4
mov eax, dword [edx]
mov dword [esp + 0x30], ecx
cmp esi, eax
jl 0x89ed25
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
dec ecx
mov eax, dword [eax + 0x4834]
cmp ecx, 7
ja 0x89eec1
jmp dword [ecx*4 + 0x6001e600]
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
push edx
push esi
push eax
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0xa0]
xor edi, edi
cmp dword [eax + 0x1c], edi
je 0x89ef21
cmp dword [eax + 0x74], 1
je 0x89ef21
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
cdq
idiv ecx
mov dword [ebp + 0x1c], edx
lea edx, [ecx - 1]
cmp esi, edx
jne 0x89f17f
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
jmp 0x89ef25
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
inc esi
inc edx
cmp esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], edx
jl 0x89ed08
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jge 0x89f130
mov eax, dword [esp + 0xa0]
cmp dword [eax + 0x74], 1
jne 0x89f02e
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x89f02e
mov ecx, dword [eax + 0x4834]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x89f130
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x89eff4
lea edx, [ebp + 0x24]
mov dword [esp + 0x30], edx
mov eax, dword [esp + esi*4 + 0x50]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x89efe1
mov edi, dword [esp + esi*4 + 0x60]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + esi*4 + 0x74]
push ecx
push edi
push eax
push ebx
call dword [0x60028940]
add esp, 0x14
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x89efae
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x30], ecx
jl 0x89ef9a
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
push edx
push esi
push eax
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x89ef8a
jmp 0x89f130
mov ecx, dword [eax + 0x4830]
mov edx, dword [esp + 0x24]
cmp dword [ecx + edx], 0xffffffff
jne 0x89f118
mov eax, dword [eax + 0x4834]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x89f0ff
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x89f0ca
lea ecx, [ebp + 0x24]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + esi*4 + 0x50]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x89f0b7
mov edi, dword [esp + esi*4 + 0x60]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + esi*4 + 0x78]
push edi
push eax
push ebx
call dword [0x60028940]
add esp, 0x14
test eax, eax
jl 0x89f1a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x89f084
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x30], ecx
jl 0x89f070
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
push ecx
push esi
push edx
push ebp
push ebx
call fcn.0089d80c
add esp, 0x14
test eax, eax
jne 0x89f1b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x89f060
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x2c]
push eax
push ebp
push ebx
push ecx
call fcn.0089f2fc
add esp, 0x10
jmp 0x89f130
mov edx, dword [esp + 0x2c]
push eax
push ebp
push ebx
push edx
call fcn.0089f1fc
add esp, 0x10
test eax, eax
jne 0x89f1ce
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
add edx, 0x28
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
jl 0x89ebdf
mov edi, dword [esp + 0xa0]
call dword [0x60028948]
mov eax, dword [edi + 0x37d8]
mov ecx, dword [edi + 0x37c0]
cmp eax, ecx
jge 0x89f1c9
cmp dword [edi + 0x74], 1
jne 0x89f1c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
mov dword [ebp + 0x20], ecx
pop edi
mov dword [eax + 0xc], esi
mov dword [eax + 4], esi
pop esi
mov dword [eax + 0x10], ecx
mov dword [eax + 8], ecx
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffeb
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe7
pop ebx
add esp, 0x80
ret
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret