Function at 0x9807dc
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 0x98085f
lea ebx, [ebp + 0x24]
mov eax, dword [edi + 0x37e0]
test eax, eax
jne 0x98081c
cmp dword [edi + 0x74], 1
je 0x98081c
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 0x980806
cmp dword [ebp], 1
jne 0x9808c1
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 0x9808f2
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 0x98094c
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x74]
mov ebx, dword [esp + 0x98]
cmp eax, 1
jne 0x980a60
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x980a60
mov eax, dword [ebp + 0x1c]
mov ecx, dword [edi + 0x4834]
test eax, eax
mov dword [esp + 0x1c], ecx
jne 0x980bc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x980bc0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x980a46
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x980a18
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 0x980a05
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 0x9811a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x9809cb
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 0x9809b7
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
push edi
push ebp
push ebx
call fcn.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x9809a7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x980993
jmp 0x980bc0
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x980bc0
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 0x980ba8
mov ecx, dword [eax - 0x28]
sub eax, 0x28
dec esi
cmp ecx, 0xffffffff
je 0x980a84
push edi
push ebp
push ebx
push esi
mov dword [esp + 0x24], esi
call fcn.009811fc
add esp, 0x10
test eax, eax
jne 0x9811ce
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x4834]
cmp esi, eax
mov dword [esp + 0x1c], edx
jge 0x980bc0
lea eax, [esi + 1]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x980b7c
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x980b4a
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 0x980b30
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 0x9811a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x980afd
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x2c], ecx
jl 0x980ae9
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.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x980ad9
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push edi
push ebp
push ebx
push edx
call fcn.009812fc
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 0x980ac5
jmp 0x980bc0
mov eax, dword [esp + 0x24]
push edi
push ebp
push ebx
push eax
call fcn.009811fc
add esp, 0x10
test eax, eax
jne 0x9811ce
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x981156
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 0x980ca2
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x980c71
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 0x980c5e
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 0x9811a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x980c27
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 0x980c13
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
push eax
push edi
push ecx
push ebp
push ebx
call fcn.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x980c03
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 0x980cf3
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
cmp eax, ecx
jge 0x980f3b
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 0x980d84
add ebp, 0x24
mov dword [esp + 0x30], ebp
mov eax, dword [esp + esi*4 + 0x50]
xor ebp, ebp
test eax, eax
jle 0x980d6b
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 0x9811a9
mov eax, dword [esp + esi*4 + 0x50]
add edi, 0x80
inc ebp
cmp ebp, eax
jl 0x980d2f
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 0x980d25
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
dec ecx
mov eax, dword [eax + 0x4834]
cmp ecx, 7
ja 0x980ec1
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.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0xa0]
xor edi, edi
cmp dword [eax + 0x1c], edi
je 0x980f21
cmp dword [eax + 0x74], 1
je 0x980f21
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 0x98117f
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
jmp 0x980f25
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 0x980d08
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jge 0x981130
mov eax, dword [esp + 0xa0]
cmp dword [eax + 0x74], 1
jne 0x98102e
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x98102e
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 0x981130
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x980ff4
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 0x980fe1
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 0x9811a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x980fae
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x30], ecx
jl 0x980f9a
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.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x980f8a
jmp 0x981130
mov ecx, dword [eax + 0x4830]
mov edx, dword [esp + 0x24]
cmp dword [ecx + edx], 0xffffffff
jne 0x981118
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 0x9810ff
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x9810ca
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 0x9810b7
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 0x9811a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x981084
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x30], ecx
jl 0x981070
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.0097f80c
add esp, 0x14
test eax, eax
jne 0x9811b9
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x981060
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x2c]
push eax
push ebp
push ebx
push ecx
call fcn.009812fc
add esp, 0x10
jmp 0x981130
mov edx, dword [esp + 0x2c]
push eax
push ebp
push ebx
push edx
call fcn.009811fc
add esp, 0x10
test eax, eax
jne 0x9811ce
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 0x980bdf
mov edi, dword [esp + 0xa0]
call dword [0x60028948]
mov eax, dword [edi + 0x37d8]
mov ecx, dword [edi + 0x37c0]
cmp eax, ecx
jge 0x9811c9
cmp dword [edi + 0x74], 1
jne 0x9811c9
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