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

Disassembly:
sub esp, 0x198
push ebx
mov ebx, dword [esp + 0x1a8]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x597154
push 0x44
call fcn.005354b8
add esp, 4
test eax, eax
je 0x597134
mov ecx, dword [esp + 0x1ac]
push ecx
mov ecx, eax
call fcn.00596890
jmp 0x597136
xor eax, eax
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x18]
mov dword [esp + 0x24], eax
mov dword [ebx + 0x30], eax
call fcn.005733f0
mov al, 1
pop ebx
add esp, 0x198
ret
mov eax, dword [esp + 0x1a0]
fld dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x1b4]
fsub dword [esi + 0x90]
lea ebp, [esi + 0x6c]
push edi
push ebp
fstp dword [esp + 0x120]
lea ecx, [esp + 0xf0]
fld dword [eax + 4]
fsub dword [ebp + 0x28]
fstp dword [esp + 0x124]
fld dword [eax + 8]
lea eax, [esp + 0x120]
fsub dword [ebp + 0x2c]
push eax
push ecx
fstp dword [esp + 0x130]
fld dword [0x6c263c]
fdiv dword [ebp + 0x30]
fstp dword [esp + 0x1c]
call fcn.0053e2b0
fld dword [esp + 0x1c]
fmul dword [eax + 8]
mov edx, dword [esp + 0x1bc]
fld dword [esp + 0x1c]
push ebp
fmul dword [eax + 4]
push edx
fld dword [esp + 0x24]
fmul dword [eax]
lea eax, [esp + 0x100]
push eax
fstp dword [esp + 0x140]
fstp dword [esp + 0x144]
fstp dword [esp + 0x148]
call fcn.0053e2b0
fld dword [esp + 0x28]
mov ecx, dword [esi + 0xbc]
fmul dword [eax + 8]
add esp, 0x18
fld dword [esp + 0x10]
mov byte [esp + 0x1b], 0
fmul dword [eax + 4]
fld dword [esp + 0x10]
fmul dword [eax]
fstp dword [esp + 0xe0]
fstp dword [esp + 0xe4]
fstp dword [esp + 0xe8]
mov edx, dword [ecx]
call dword [edx + 0x44]
test ax, ax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x98], eax
jbe 0x59793b
jmp 0x597250
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x38]
push edx
call dword [eax + 0x48]
mov eax, dword [esi + 0xbc]
mov edi, dword [eax + 0x20]
mov cl, byte [ebx + 0x10]
mov byte [esp + 0x88], cl
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x88]
push edx
push eax
movzx eax, word [esp + 0x3c]
lea ecx, [eax + eax*2]
movzx eax, word [esp + 0x38]
lea edx, [edi + ecx*4]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
movzx eax, word [esp + 0x28]
push edx
push ecx
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
push eax
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x14c]
push edx
call fcn.005a0480
add esp, 0x28
test al, al
je 0x597924
push 0x44
mov byte [esp + 0x1f], 1
call fcn.005354b8
add esp, 4
test eax, eax
je 0x597307
push esi
mov ecx, eax
call fcn.00596890
mov esi, eax
jmp 0x597309
xor esi, esi
cmp dword [ebx + 0xc], 1
jne 0x597399
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x184]
push ecx
mov ecx, ebp
call fcn.0053e250
fld dword [ebp + 0x30]
fld st(0)
fmul dword [eax]
fld st(1)
fmul dword [eax + 4]
fstp dword [esp + 0x114]
fxch st(1)
fmul dword [eax + 8]
fstp dword [esp + 0x118]
fadd dword [ebp + 0x24]
fstp dword [esp + 0x8c]
mov edx, dword [esp + 0x8c]
fld dword [esp + 0x114]
mov dword [esp + 0x7c], edx
fadd dword [ebp + 0x28]
fstp dword [esp + 0x90]
mov eax, dword [esp + 0x90]
fld dword [esp + 0x118]
mov dword [esp + 0x80], eax
fadd dword [ebp + 0x2c]
fstp dword [esp + 0x94]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x7c]
lea edx, [esi + 8]
mov dword [edx], eax
mov ecx, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x84]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0xa8]
mov dx, word [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov word [esi + 0x18], dx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x14]
mov word [esi + 0x1a], dx
mov word [esi + 0x1c], cx
mov word [esi + 0x1e], ax
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
mov al, byte [ebx + 0x34]
test al, al
fsubr dword [0x6c263c]
fstp dword [esp + 0x1c]
je 0x597546
mov eax, dword [esp + 0x1b8]
mov ecx, dword [eax + 0xbc]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x597533
movzx edx, word [esp + 0x28]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
fld dword [esp + 0x3c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x40]
mov dword [esp + 0xcc], ecx
fmul dword [esp + 0x20]
movzx ecx, word [esp + 0x24]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x5c], edx
fld dword [esp + 0x5c]
fmul dword [esp + 0x10]
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
fld dword [esp + 0x60]
mov dword [esp + 0xb8], edx
fmul dword [esp + 0x10]
movzx edx, word [esp + 0x14]
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xbc], ecx
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov dword [esp + 0x54], ecx
fld dword [esp + 0x54]
fmul dword [esp + 0x1c]
mov dword [esp + 0x58], edx
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
fld dword [esp + 0x58]
mov dword [esp + 0x44], eax
fmul dword [esp + 0x1c]
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
fld dword [esp + 0xb8]
mov dword [esp + 0x48], ecx
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fld dword [esp + 0xbc]
mov dword [esp + 0x4c], edx
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
fld dword [esp + 0xcc]
mov dword [esp + 0x50], eax
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0xd0]
mov dword [esi + 0x20], ecx
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [esi + 0x24], edx
jmp 0x597557
mov eax, dword [0x729c4c]
mov dword [esi + 0x20], eax
mov ecx, dword [0x729c50]
mov dword [esi + 0x24], ecx
jmp 0x597557
mov edx, dword [0x729c4c]
mov dword [esi + 0x20], edx
mov eax, dword [0x729c50]
mov dword [esi + 0x24], eax
mov al, byte [ebx + 0x35]
test al, al
je 0x5977ec
mov ecx, dword [esp + 0x1b8]
mov al, byte [ebx + 0x36]
test al, al
mov edx, dword [ecx + 0xbc]
mov ecx, dword [edx + 0x24]
je 0x597681
test ecx, ecx
je 0x597681
movzx eax, word [esp + 0x28]
fld dword [esp + 0x20]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
fmul dword [eax]
fld dword [esp + 0x20]
fmul dword [eax + 4]
fld dword [esp + 0x20]
fmul dword [eax + 8]
movzx eax, word [esp + 0x24]
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
fstp dword [esp + 0xf4]
fld dword [esp + 0x10]
fmul dword [eax]
fld dword [esp + 0x10]
fmul dword [eax + 4]
fld dword [esp + 0x10]
fmul dword [eax + 8]
movzx eax, word [esp + 0x14]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
fstp dword [esp + 0x14c]
fld dword [esp + 0x1c]
fmul dword [eax]
fld dword [esp + 0x1c]
fmul dword [eax + 4]
fstp dword [esp + 0xfc]
fld dword [esp + 0x1c]
fmul dword [eax + 8]
fstp dword [esp + 0x100]
fadd st(2)
fstp dword [esp + 0x104]
fld dword [esp + 0xfc]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x100]
fadd dword [esp + 0x14c]
fstp dword [esp + 0x10c]
fld dword [esp + 0x104]
fadd st(3)
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x30], ecx
fadd st(1)
fstp dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x34], edx
fstp st(0)
fstp st(0)
fld dword [esp + 0x10c]
fadd dword [esp + 0xf4]
fstp dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
jmp 0x59779a
movzx eax, word [esp + 0x14]
lea ecx, [eax + eax*2]
lea eax, [edi + ecx*4]
movzx ecx, word [esp + 0x24]
lea edx, [ecx + ecx*2]
lea ecx, [edi + edx*4]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0xac]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0xb0]
mov edx, dword [esp + 0xb0]
fld dword [ecx + 8]
mov ecx, dword [esp + 0xac]
fsub dword [eax + 8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
fstp dword [esp + 0xb4]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x78], ecx
movzx ecx, word [esp + 0x28]
lea edx, [ecx + ecx*2]
lea ecx, [edi + edx*4]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0xc0]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0xc4]
fld dword [ecx + 8]
mov ecx, dword [esp + 0xc4]
fsub dword [eax + 8]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
fstp dword [esp + 0xc8]
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x6c], edx
fld dword [esp + 0x6c]
fmul dword [esp + 0x74]
fld dword [esp + 0x78]
fmul dword [esp + 0x68]
fsubp st(1)
fstp dword [esp + 0xd4]
mov eax, dword [esp + 0xd4]
fld dword [esp + 0x78]
mov dword [esp + 0x30], eax
fmul dword [esp + 0x64]
fld dword [esp + 0x6c]
fmul dword [esp + 0x70]
fsubp st(1)
fstp dword [esp + 0xd8]
mov ecx, dword [esp + 0xd8]
fld dword [esp + 0x68]
mov dword [esp + 0x34], ecx
fmul dword [esp + 0x70]
fld dword [esp + 0x74]
fmul dword [esp + 0x64]
fsubp st(1)
fstp dword [esp + 0xdc]
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x30]
call fcn.004915a0
fstp st(0)
cmp dword [ebx + 0xc], 1
jne 0x5977d3
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x190]
push ecx
mov ecx, ebp
call fcn.0053e250
mov edx, dword [eax]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea eax, [esi + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x597807
mov eax, dword [0x729430]
lea edx, [esi + 0x28]
mov dword [edx], eax
mov ecx, dword [0x729434]
mov dword [edx + 4], ecx
mov eax, dword [0x729438]
mov dword [edx + 8], eax
mov al, byte [ebx + 0x37]
test al, al
je 0x5978da
mov ecx, dword [esp + 0x1b8]
mov edx, dword [ecx + 0xbc]
mov edi, dword [edx + 0x28]
test edi, edi
je 0x5978da
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x154]
push ecx
movzx ecx, word [esp + 0x30]
shl ecx, 4
add ecx, edi
call fcn.00512560
movzx ecx, word [esp + 0x24]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x174]
shl ecx, 4
push eax
add ecx, edi
call fcn.00512560
mov ecx, dword [esp + 0x1c]
push ecx
movzx ecx, word [esp + 0x18]
lea edx, [esp + 0x164]
shl ecx, 4
push edx
add ecx, edi
call fcn.00512560
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x170]
call fcn.005125e0
mov ecx, eax
call fcn.005125e0
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x138]
lea ecx, [esi + 0x34]
mov dword [ecx], edx
mov edx, dword [esp + 0x13c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x140]
mov dword [ecx + 8], edx
jmp 0x5978fb
mov edx, dword [0x71979c]
lea ecx, [esi + 0x34]
mov dword [ecx], edx
mov eax, dword [0x7197a0]
mov dword [ecx + 4], eax
mov edx, dword [0x7197a4]
mov dword [ecx + 8], edx
mov eax, dword [0x7197a8]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x18]
mov dword [esp + 0x20], esi
mov dword [ebx + 0x30], esi
call fcn.005733f0
cmp dword [ebx], 1
jne 0x59791d
cmp dword [ebx + 4], 1
je 0x59794a
mov esi, dword [esp + 0x1b8]
mov eax, dword [esp + 0x2c]
inc eax
cmp ax, word [esp + 0x98]
mov dword [esp + 0x2c], eax
jb 0x597250
mov al, byte [esp + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x198
ret