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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xbc
mov eax, dword [ecx + 0x60]
mov esi, dword [ebp + 8]
lea eax, [eax + esi*4]
cmp dword [eax], 0
mov dword [ebp - 0x90], eax
jne 0x489d45
test esi, esi
mov byte [ebp - 0x6d], 0
jne 0x4896e1
mov eax, dword [ecx + 0x50]
cmp dword [eax - 0xc], 0
setne byte [ebp - 0x6d]
mov eax, dword [ebx + 0x44]
cmp byte [ebx + 0xc], 1
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x78], eax
jne 0x489705
dec eax
jle 0x489705
mov dword [ebp - 0x78], 5
mov dword [ebp - 0x74], 5
mov esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
imul esi, dword [ebx + 0x34]
imul esi, dword [ebx + 0x38]
imul esi, dword [ebx + 0x3c]
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00488e0e
mov dword [ebp - 0x40], 0
sub esp, 0x10
cmp byte [ebp - 0x6d], 0
je 0x489790
lea edi, [ebp - 0x30]
lea eax, [ebx + 0x50]
mov ecx, edi
mov dword [esp], eax
call fcn.0069b780
push eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0042d70c
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], edx
call fcn.006688a8
lea ecx, [ebp - 0x28]
call fcn.006688a8
mov ecx, edi
call fcn.0069bcc0
jmp 0x489818
fld dword [0x7798f8]
fld st(0)
fimul dword [ebp - 0x34]
fxch st(1)
fnstcw word [ebp - 0x4a]
mov dword [esp], 0x20
mov ax, word [ebp - 0x4a]
fimul dword [ebp - 0x38]
or ah, 0xc
mov word [ebp - 0x4c], ax
fldcw word [ebp - 0x4c]
fistp dword [ebp - 0x20]
fldcw word [ebp - 0x4a]
fldcw word [ebp - 0x4c]
fistp dword [ebp - 0x1c]
fldcw word [ebp - 0x4a]
call fcn.0071ed10
mov edi, eax
lea eax, [ebp - 0x20]
mov ecx, edi
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.0042d522
sub esp, 0xc
test edi, edi
mov dword [ebp - 0x30], edi
je 0x4897f8
inc dword [edi + 4]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x28], eax
call fcn.006688a8
lea ecx, [ebp - 0x30]
call fcn.006688a8
imul eax, dword [ebp + 8], 0xc
mov ecx, dword [ebx + 0x6c]
mov dword [esp], esi
mov edi, eax
add ecx, eax
mov dword [ebp - 0x84], eax
call fcn.006ee940
push eax
mov ecx, dword [ebx + 0x78]
mov dword [esp], esi
add ecx, edi
call fcn.006ee940
push eax
mov ecx, dword [ebx + 0x84]
add ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, edx
sar eax, 3
cmp esi, eax
jbe 0x489863
sub esi, eax
mov dword [esp], esi
call fcn.006eea50
push eax
jmp 0x48986b
jae 0x48986b
lea eax, [edx + esi*8]
mov dword [ecx + 4], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebx + 0x3c]
jge 0x489c35
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebx + 0x38]
jge 0x489c2d
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebx + 0x34]
jge 0x489c25
mov dword [ebp - 0x8c], 0x91c7c8
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x58], eax
jge 0x489c1d
cmp byte [ebx + 0xc], 1
mov byte [ebp - 0x6c], 0
jne 0x4898d3
cmp dword [ebp - 0x58], 0
setg byte [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
mov ecx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
cdq
idiv dword [ebp - 0x74]
mov dword [esp], edx
call fcn.00488ee0
mov ecx, dword [ebx + 0x20]
mov edi, eax
sub esp, 0x10
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x38]
cdq
idiv ecx
mov esi, eax
mov eax, edi
cdq
idiv esi
imul eax, dword [ebx + 0x24]
mov dword [esp + 4], 0x42000000
imul ecx, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x30]
call fcn.006767f0
cmp byte [ebp - 0x6d], 0
push eax
push eax
je 0x4899a0
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [ebx + 0x20]
mov dword [esp + 4], 0x42000000
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.006767f0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x54], esi
push edi
push edi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x80], esi
add eax, edi
dec eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], edi
add eax, esi
dec eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x94], eax
shl eax, 5
add eax, esi
mov dword [ebp - 0x98], eax
jmp 0x489b38
mov eax, 1
cmp byte [ebp - 0x6c], 0
cmove eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebx + 0x24]
jge 0x48993f
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebx + 0x20]
jge 0x489acf
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call fcn.00488ea6
mov edx, dword [ebx + 0x54]
lea ecx, [ebp - 0x3c]
mov eax, dword [edx + eax*4]
sub esp, 0x1c
mov dword [esp], 0x91c6c0
mov dword [esp + 4], eax
call fcn.00485b4c
cmp dword [ebp - 0x3c], 0
push esi
push esi
je 0x489abf
cmp byte [ebp - 0x6c], 0
je 0x489a68
cmp byte [0x91c818], 0
je 0x489ce6
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], 0x918168
mov dword [esp + 4], 0x918158
mov dword [esp], eax
call fcn.0042d0f6
sub esp, 0xc
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x68]
not eax
add eax, dword [ebx + 0x24]
not edx
add edx, dword [ebx + 0x20]
mov dword [esp + 4], 0x42000000
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x20], edx
call fcn.006767f0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push ecx
push ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x20], edx
call fcn.0042d216
push edx
push edx
lea ecx, [ebp - 0x3c]
call fcn.006688a8
inc dword [ebp - 0x68]
jmp 0x4899c6
inc dword [ebp - 0x54]
jmp 0x4899b7
mov edx, eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x54]
imul edx, dword [ecx + 0x14]
add eax, edx
mov edx, dword [ecx + 8]
imul eax, dword [ecx + 0x1c]
cmp byte [edx + eax + 3], 0
mov eax, dword [ebp - 0xa0]
je 0x489b2c
mov edx, dword [ebp - 0x68]
cmp edx, eax
cmovg edx, eax
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x54]
cmovg edx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x7c]
cmp edx, eax
cmovl edx, eax
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x80]
cmp edx, dword [ebp - 0x54]
cmovl edx, dword [ebp - 0x54]
mov dword [ebp - 0x80], edx
inc eax
cmp eax, dword [ebp - 0x9c]
jl 0x489ad7
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x54], eax
jge 0x489b55
mov eax, dword [ebx + 0x24]
shl eax, 5
add eax, edi
mov dword [ebp - 0x9c], eax
mov eax, edi
jmp 0x489b2d
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x54], ebx
fld dword [0x7798f8]
fld st(0)
mov ebx, dword [eax + ecx]
mov ecx, dword [ebp - 0x6c]
shl edx, 4
add ebx, edx
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x68]
mov eax, ebx
mov dword [ebx + 4], ecx
mov ebx, dword [ebp - 0x80]
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 0x7c]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x54]
fimul dword [ebx + 0x24]
fnstcw word [ebp - 0x4a]
mov ax, word [ebp - 0x4a]
or ah, 0xc
mov word [ebp - 0x4c], ax
fldcw word [ebp - 0x4c]
fistp dword [ebp - 0x50]
fldcw word [ebp - 0x4a]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebx + 0x78]
fimul dword [ebp - 0x94]
lea eax, [edi + eax - 1]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x84]
add edx, dword [ecx + eax]
mov dword [edx], esi
mov dword [edx + 4], edi
fldcw word [ebp - 0x4c]
fistp dword [ebp - 0x50]
fldcw word [ebp - 0x4a]
mov ecx, dword [ebp - 0x50]
lea ecx, [esi + ecx - 1]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x84]
inc dword [ebp - 0x58]
add dword [ebp - 0x8c], 0x10
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x84]
mov edx, dword [ebp - 0x88]
mov eax, dword [eax + ecx]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x6c]
sub edx, esi
mov dword [eax], edx
mov edx, dword [ebp - 0x68]
sub edx, edi
mov dword [eax + 4], edx
jmp 0x4898b5
inc dword [ebp - 0x64]
jmp 0x489898
inc dword [ebp - 0x60]
jmp 0x489885
inc dword [ebp - 0x5c]
jmp 0x489872
mov dword [esp], 0x50
call fcn.0071ed10
lea esi, [ebp - 0x40]
mov ecx, eax
mov dword [esp + 8], 0
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00434b12
sub esp, 0xc
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x489c6d
inc dword [ebx + 4]
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 0
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov dword [edi], ebx
call fcn.00668b24
lea ecx, [ebp - 0x28]
call fcn.00668b24
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [esp], 1
call dword [eax + 0xc]
mov ecx, esi
push eax
call fcn.006688a8
jmp 0x489d45
mov dword [esp], 0x91c818
call fcn.0071f870
test eax, eax
je 0x489a44
mov edx, 0x91c7d8
mov esi, 0x918138
mov edi, edx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov esi, 0x918118
mov cl, 4
rep movsd dword es:[edi], dword [esi]
mov esi, 0x9180f8
mov cl, 4
rep movsd dword es:[edi], dword [esi]
mov esi, 0x9180b8
mov cl, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp], 0x91c818
call fcn.0071f970
jmp 0x489a44
mov eax, dword [ebp - 0x90]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4