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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
push esi
xor esi, esi
cmp eax, esi
je 0x3005ab6f
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x3005ab7a
call fcn.3005ee30
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x3005abb0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [ebp]
push esi
push ebx
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
pop esi
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
cmp eax, 2
jne 0x3005b0b2
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [eax + 0x24]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x30], edi
jne 0x3005abe4
fld qword [0x30293678]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], SysStringLen
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov byte [esp + 0x8c], 0
mov edx, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.300dfc60
test byte [edi + 0x38], 4
mov eax, dword [esp + 0x70]
je 0x3005ac42
movzx edx, word [edi + 0x36]
lea eax, [eax + edx*2]
jmp 0x3005ac48
movzx ecx, word [edi + 0x36]
add eax, ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
add eax, 6
mov dword [esp + 0x70], eax
add eax, edx
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x3005abd1
cmp ebx, 8
mov dword [esp + 0x28], 0
jl 0x3005aca2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
test al, al
je 0x3005aca2
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x28], eax
cmp ebx, 8
mov dword [esp + 0x2c], 0
jl 0x3005acd2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
je 0x3005acd2
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.30060a60
mov dword [esp + 0x2c], eax
cmp byte [edi + 0x7e], 0x4b
mov dword [esp + 0x18], 0x400
jne 0x3005ace8
mov dword [esp + 0x18], 0x5000
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x3005af60
push edi
call fcn.300b5e70
add esp, 4
test eax, eax
mov dword [esp + 0x44], eax
je 0x3005af60
mov eax, dword [esp + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], 0
jle 0x3005af42
mov dword [esp + 0x24], esi
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov di, word [ecx + ebx*2]
cmp di, 0xffff
je 0x3005af27
mov eax, dword [esp + 0x38]
movzx edx, di
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
movzx edx, byte [eax]
or ecx, edx
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
test ecx, ecx
fstp dword [esp + 0x10]
je 0x3005adef
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.3007b560
test eax, eax
mov eax, dword [esp + 0x34]
je 0x3005adaa
movsx ecx, ax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x3005adef
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x3005adef
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x3005add3
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005adfd
neg eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
movsx eax, word [esp + 0x18]
mov dword [esp + 0x40], eax
fmul dword [esp + 0x10]
mov esi, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
fidiv dword [esp + 0x40]
fstp dword [esp + 0x10]
call fcn.300d8aa0
mov ecx, eax
call fcn.300b6640
cmp eax, 1
jne 0x3005aef2
test di, di
je 0x3005aef2
mov edi, dword [esp + 0x24]
cmp word [edi], 0x20
je 0x3005aef2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005ae5e
neg eax
fld qword [esp + 0xa8]
push 1
fadd dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x58]
xor ecx, ecx
mov cx, word [eax + ebx*2]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push edx
xor edx, edx
mov dx, word [edi]
mov dword [esp + 0x60], 0
push ecx
mov ecx, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
call fcn.300b7670
add esi, 0x54
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x5c], edx
fld dword [esp + 0x5c]
mov dword [esp + 0x54], eax
fdiv dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], edx
fmul dword [esp + 0x10]
fld dword [esp + 0x64]
fmul dword [0x30297a64]
faddp st(1)
jmp 0x3005aef6
fld dword [esp + 0x10]
mov eax, dword [esp + 0x20]
fiadd dword [esp + 0x2c]
cmp eax, 7
jl 0x3005af1f
mov eax, dword [esp + 0x30]
test byte [eax + 0x38], 0x20
je 0x3005af1f
fadd dword [0x30297a60]
fmul dword [0x30297a5c]
fmul dword [0x30297a64]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x3005ad30
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.30208320
fld dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x3005b094
mov dword [esp + 0x24], esi
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ax, word [edx + ebx*2]
cmp ax, 0xffff
je 0x3005b07d
mov ecx, dword [esp + 0x38]
movzx eax, ax
xor edx, edx
mov dh, byte [ecx + eax*2 + 1]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dl, byte [eax]
mov edi, edx
je 0x3005b023
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.3007b560
test eax, eax
mov eax, dword [esp + 0x34]
je 0x3005afda
movsx ecx, ax
add edi, ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x3005b023
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x3005b023
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x3005b003
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
mov esi, dword [esp + 0x24]
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005b031
neg eax
movsx ecx, word [esp + 0x18]
imul eax, edi
cdq
idiv ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, edx
cmp ecx, 7
jl 0x3005b079
mov edx, dword [esp + 0x30]
test byte [edx + 0x38], 0x20
je 0x3005b079
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x14], edx
jmp 0x3005b07d
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x3005af80
mov eax, dword [esp + 0x1c]
push eax
call fcn.30208320
fild dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
fld qword [0x30293678]
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c