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

Disassembly:
sub esp, 0xd8
push ebp
push esi
mov esi, dword [esp + 0xe4]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esi + 4]
call fcn.300d5800
mov ebp, eax
test ebp, ebp
jne 0x300b5921
pop esi
xor al, al
pop ebp
add esp, 0xd8
ret 8
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
push ebx
push edi
mov edi, dword [esp + 0xf0]
movsx eax, word [edi + 0x24]
fld dword [edi + 0x1c]
fst dword [esp + 0x18]
mov dword [esp + 0x30], eax
fld dword [edi + 0x20]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xa0], eax
fild dword [esp + 0x30]
movzx eax, word [edi + 0x26]
fmul dword [0x3029acac]
mov dword [esp + 0x90], ecx
imul eax, eax, 0x1c
fst dword [esp + 0x14]
fld st(2)
fstp dword [esp + 0x80]
fld st(1)
fstp dword [esp + 0x84]
fstp dword [esp + 0x88]
fxch st(1)
movzx ecx, byte [esi + 0x58]
fstp dword [esp + 0x98]
fstp dword [esp + 0x9c]
mov dword [esp + 0x94], edx
movzx edx, byte [esi + 0x59]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esi + 0x48]
add eax, ecx
mov dword [esp + 0x8c], 0x48
mov dword [esp + 0xa8], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xac], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xb4], edx
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x218]
xor bl, bl
test eax, eax
mov byte [esp + 0x30], bl
jne 0x300b59f4
call fcn.300e4110
cmp eax, 9
jl 0x300b59ff
mov bl, 1
mov byte [esp + 0x30], bl
mov ebp, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0xdc]
call fcn.300f88b0
fld dword [0x302fd40c]
fld dword [esi + 0x3c]
cmp eax, 9
fucompp
setge cl
xor ebp, ebp
mov dl, 1
fnstsw ax
test ah, 0x44
jnp 0x300b5a32
mov dword [esp + 0xa8], ebp
xor dl, dl
xor eax, eax
test dl, dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x54], eax
movzx eax, word [edi + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], ebp
je 0x300b5bca
fld dword [esp + 0x18]
fmul dword [0x302996f0]
fst dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fistp dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fistp dword [esp + 0x38]
fld dword [esp + 0x14]
mov eax, dword [esp + 0x38]
fmul dword [0x302996f0]
mov edx, dword [esp + 0x18]
and eax, 0xffff
shl edx, 0x10
fstp dword [esp + 0x14]
or eax, edx
mov dword [esp + 0x5c], eax
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
fld dword [esi + 0x40]
fmul dword [0x302996f0]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
fld dword [esi + 0x44]
mov edx, dword [esp + 0x18]
fmul dword [0x302996f0]
mov dword [esp + 0x64], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor edx, edx
mov dh, byte [esi + 0x58]
mov dword [esp + 0x68], eax
movzx eax, word [edi + 0x26]
imul eax, eax, 0x1c
mov dl, byte [esi + 0x59]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0x48]
fld dword [eax + edx + 0x14]
fmul dword [0x302996f0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
movzx edx, word [edi + 0x26]
mov eax, dword [esp + 0x18]
imul edx, edx, 0x1c
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x48]
fld dword [edx + eax + 0x18]
fmul dword [0x302996f0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
movzx eax, word [edi + 0x26]
mov edx, dword [esp + 0x18]
imul eax, eax, 0x1c
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0x48]
fld dword [eax + edx + 0x10]
fmul dword [0x302996f0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
neg cl
mov dword [esp + 0x78], eax
sbb ecx, ecx
xor edx, edx
and ecx, 2
test bl, bl
mov ebx, dword [esp + 0xb8]
mov eax, dword [ebx + 0xc]
setne dl
or ecx, edx
cmp eax, ebp
mov dword [esp + 0x7c], ecx
jne 0x300b5ba4
mov ecx, ebx
call fcn.300b4ee0
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.301633a0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebp
jne 0x300b5bd9
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0xd8
ret 8
cmp esi, ebp
je 0x300b5c63
mov ecx, dword [esi + 8]
lea edx, [esp + 0xbc]
xor eax, eax
sub ecx, edx
nop
lea edx, [ecx + eax*4]
mov edx, dword [esp + edx + 0xbc]
mov dword [esp + eax*4 + 0xbc], edx
inc eax
cmp eax, 0xb
jl 0x300b5bf0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
call fcn.30164830
mov eax, dword [esp + 0x38]
mov word [edi], ax
mov cx, word [esi + 2]
add cx, ax
xor eax, eax
mov word [edi + 2], cx
mov ax, word [esi + 4]
add ax, word [esp + 0x3c]
add esp, 0x18
neg eax
mov word [edi + 4], ax
mov dx, word [esi + 4]
add dx, ax
mov word [edi + 6], dx
mov dword [edi + 0xc], esi
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0xd8
ret 8