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

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
mov esi, ecx
call fcn.300b9350
mov edi, dword [esp + 0x114]
cmp edi, ebp
mov ebx, dword [esp + 0x110]
mov eax, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x38], ebp
mov byte [esi + 0x3c], 0
mov byte [esi + 0x3d], 0
je 0x30089921
cmp dword [edi + 0x78], eax
jne 0x30089921
mov cl, byte [edi + 0x29]
test cl, cl
jne 0x300896ee
cmp dword [edi], ebp
jne 0x300896ee
xor eax, eax
mov ecx, dword [edi + 0x68]
movzx eax, al
push edi
mov dword [esp + 0x20], eax
call fcn.300e29c0
mov al, byte [edi + 0x20]
test al, al
mov dword [esp + 0x10], 7
je 0x30089715
mov dword [esp + 0x10], 8
cmp dword [edi + 0x10], ebp
jle 0x30089754
cmp dword [edi + 0x14], ebp
jle 0x30089754
push 0x48
call fcn.3007a1f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x3008974f
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0
push edx
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x3c]
push eax
mov ecx, ebp
call fcn.300041a0
jmp 0x30089751
xor eax, eax
mov dword [esi + 0x34], eax
mov ebp, dword [esi + 0x34]
test ebp, ebp
je 0x3008991a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x30089906
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x30089779
mov eax, dword [ebp + 0x38]
jmp 0x3008977c
mov eax, dword [ebp + 0x20]
sar eax, 2
mov dword [esi + 0x4c], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x300897ac
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x30089795
mov ebp, dword [ebp + 0x34]
jmp 0x30089798
mov ebp, dword [ebp + 0x18]
mov edx, dword [esi + 0x48]
dec ebp
imul ebp, eax
shl ebp, 2
add edx, ebp
neg eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x52c]
mov edx, dword [ecx + 0x38]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], edx
call fcn.30043df0
fild dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
fstp qword [esp + 0x18]
call fcn.30077690
fmul qword [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
fmul qword [0x30296da0]
fstp qword [esp]
push ecx
call fcn.30077710
lea edx, [esp + 0x3c]
push edx
call fcn.300776f0
fmul qword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x38]
fmul qword [0x30296da0]
fstp qword [esp]
push eax
call fcn.300777a0
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push 0
push 0
call fcn.30077090
mov edx, dword [esi + 0x34]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.30081460
mov edx, dword [esi + 0x34]
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
push edx
call fcn.30087ca0
mov eax, dword [esp + 0x5c]
add esp, 0x40
test eax, eax
jne 0x30089862
mov ecx, edi
call fcn.300b9180
cmp dword [esp + 0x10], 7
jne 0x300898b5
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x44]
test ecx, ecx
mov edx, dword [esi + 0x48]
je 0x3008987b
mov edi, dword [eax + 0x30]
jmp 0x3008987e
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x3008988a
mov eax, dword [eax + 0x34]
jmp 0x3008988d
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x300898b5
mov ebx, eax
test edi, edi
mov eax, edx
je 0x300898ac
mov ecx, edi
jmp 0x300898a0
or dword [eax], 0xff000000
add eax, 4
dec ecx
jne 0x300898a0
dec ebx
mov eax, dword [esi + 0x4c]
lea edx, [edx + eax*4]
jne 0x30089893
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x300898c4
mov edx, dword [eax + 0x34]
jmp 0x300898c7
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x300898ea
mov ecx, dword [eax + 0x30]
push edx
push ecx
push eax
mov ecx, esi
call fcn.300b9350
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8
mov ecx, dword [eax + 0x14]
push edx
push ecx
push eax
mov ecx, esi
call fcn.300b9350
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8
test ebp, ebp
je 0x3008991a
mov ecx, ebp
call fcn.30003ec0
push ebp
call fcn.30208320
add esp, 4
mov dword [esi + 0x34], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8