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

Disassembly:
mov eax, 0x7bac
call fcn.00613910
push ebp
mov ebp, ecx
lea eax, [ebp + 0x404]
test eax, eax
je 0x546cce
lea ecx, [ebp + 0x2ce1a]
test ecx, ecx
je 0x546cce
lea edx, [ebp + 0x28e1a]
test edx, edx
je 0x546cce
push ebx
push esi
movzx esi, byte [esp + 0x7bbc]
push edi
movzx edi, byte [esp + 0x7bc4]
lea eax, [esi + edi*8]
imul eax, eax, 0x70
cmp byte [eax + ebp + 0x6a62d], 0
lea ebx, [eax + ebp + 0x6a5e8]
mov dword [esp + 0x9c], ebx
je 0x546ccb
mov ecx, dword [ebp + 0x6a5bc]
fld dword [ecx + 0xbc4]
mov ecx, ebx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld st(0)
fld1
fdivrp st(1)
fstp dword [esp + 0x44]
fmul qword [0x689850]
fstp dword [esp + 0x70]
call fcn.00534520
shl edi, 4
mov eax, edi
mov edx, eax
imul edx, edx, 0x83
shl esi, 4
add edx, esi
lea ecx, [ebp + edx*2 + 0x50c]
mov edx, eax
imul edx, edx, 0x81
mov dword [esp + 0x48], ecx
lea edx, [edx + esi + 0xef5e]
lea ecx, [ebp + edx*2]
add ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, eax
shl ecx, 7
add ecx, esi
lea edx, [ecx + ebp + 0x28e1a]
movzx ecx, word [ebp + 0x6a570]
mov dword [esp + 0x6c], edx
imul ecx, ecx, 0x6400
mov edx, esi
imul edx, edx, 0xc8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x80], esi
fild dword [esp + 0x1c]
fild dword [esp + 0x18]
test edx, edx
jge 0x546649
fadd dword [0x686750]
movzx ecx, word [ebp + 0x6a572]
faddp st(1)
imul ecx, ecx, 0x6400
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esp + 0xa0]
mov edx, eax
imul edx, edx, 0xc8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x1c]
fild dword [esp + 0x18]
test edx, edx
jge 0x546689
fadd dword [0x686750]
faddp st(1)
xor edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x40]
mov dword [esp + 0x38], edx
mov byte [esp + 0x17], dl
fst dword [ebx]
mov dword [esp + 0x60], edx
fld qword [0x689548]
lea edx, [eax + 0x10]
fadd st(1), st(0)
lea edi, [esp + 0xa4]
fxch st(1)
lea ecx, [esp + 0x1bbc]
mov dword [esp + 0x64], edi
fstp dword [ebx + 4]
mov dword [esp + 0x28], eax
fld dword [esp + 0x40]
mov dword [esp + 0x1c], edx
fst dword [ebx + 8]
faddp st(1)
fstp dword [ebx + 0xc]
fld dword [0x68984c]
fstp dword [esp + 0x50]
fld dword [0x689848]
fstp dword [esp + 0x58]
cmp eax, edx
ja 0x546c6b
fld dword [esp + 0x70]
fld qword [0x689840]
fld qword [0x678ff0]
mov eax, dword [esp + 0x48]
fld dword [esp + 0xa0]
mov edx, dword [esp + 0x5c]
fstp dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x54], esi
cmp esi, eax
ja 0x546c22
fld dword [esp + 0x40]
lea eax, [edi + 0xc]
fchs
mov dword [esp + 0x68], eax
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
movzx eax, word [ebx]
add ebx, 2
mov dword [esp + 0x74], ebx
movsx ebx, byte [edx]
neg ebx
mov dword [esp + 0x20], ebx
movsx ebx, byte [edx + 1]
fild dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], ebx
movsx ebx, byte [edx + 1]
fmul st(3)
fstp dword [esp + 0x84]
inc edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x84]
movzx eax, ax
fmul st(3)
mov dword [esp + 0x10], eax
fstp dword [esp + 0x88]
inc edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
fmul st(3)
fstp dword [esp + 0x8c]
fld dword [esp + 0x24]
fst dword [esp + 0x90]
mov eax, dword [esp + 0x90]
fxch st(1)
mov dword [edi], eax
fst dword [esp + 0x94]
mov eax, dword [esp + 0x94]
fild dword [esp + 0x10]
mov dword [edi + 4], eax
fmul dword [ebp + 0x39138]
fstp dword [esp + 0x98]
mov eax, dword [esp + 0x98]
fld dword [esp + 0x8c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x68]
fcom qword [0x673618]
mov dword [eax], ebx
mov ebx, dword [esp + 0x88]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x8c]
mov dword [eax + 8], ebx
fnstsw ax
test ah, 5
jp 0x546827
inc dword [esp + 0x38]
fstp st(0)
jmp 0x54683e
fcomp qword [0x689838]
fnstsw ax
test ah, 5
jp 0x54683a
inc dword [esp + 0x3c]
jmp 0x54683e
inc dword [esp + 0x4c]
fld dword [esp + 0x98]
fld dword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x546856
fst dword [esp + 0x58]
fld dword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x546869
fstp dword [esp + 0x50]
jmp 0x54686b
fstp st(0)
mov ebx, dword [esp + 0x54]
cmp ebx, 0x80
jae 0x546bf1
cmp dword [esp + 0x28], 0x80
jae 0x546bf1
lea eax, [esi + 0x10]
cmp eax, ebx
je 0x546bf1
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x1c], eax
je 0x546bf1
mov ebx, dword [esp + 0x7c]
mov al, byte [ebx]
inc ebx
mov dword [esp + 0x7c], ebx
cmp al, 0xff
je 0x546bf1
movzx eax, al
mov ebx, dword [ebp + eax*4 + 0x4a144]
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x546bf1
fstp st(1)
mov edx, ebx
sub edx, dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x5468f7
fst dword [esp + 0x34]
fldz
fcom dword [esp + 0x34]
fnstsw ax
test ah, 1
jne 0x546908
fst dword [esp + 0x34]
mov edx, dword [esp + 0x74]
movzx eax, word [edx + 0x104]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x546938
fxch st(1)
fst dword [esp + 0x30]
fxch st(1)
fcom dword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x546947
fst dword [esp + 0x30]
movzx eax, word [edx]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x54696f
fxch st(1)
fst dword [esp + 0x2c]
fxch st(1)
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x54697e
fst dword [esp + 0x2c]
movzx edx, word [edx + 0x106]
sub ebx, edx
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x5469a8
fxch st(1)
fstp dword [esp + 0x10]
jmp 0x5469aa
fstp st(1)
fcom dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x5469bb
fstp dword [esp + 0x10]
jmp 0x5469bd
fstp st(0)
fld dword [esp + 0x34]
fmul dword [esp + 0x44]
fmul qword [0x673620]
fstp dword [0x74b4c8]
fld dword [0x74b4c8]
fistp dword [0x74b4cc]
fild dword [0x74b4cc]
mov edx, dword [0x74b4cc]
fld dword [0x74b4c8]
fcompp
fnstsw ax
test ah, 5
jp 0x5469f9
dec edx
fld dword [esp + 0x30]
fmul dword [esp + 0x44]
fmul qword [0x673620]
fstp dword [0x74b4c8]
fld dword [0x74b4c8]
fistp dword [0x74b4cc]
fild dword [0x74b4cc]
mov edi, dword [0x74b4cc]
fld dword [0x74b4c8]
fcompp
fnstsw ax
test ah, 5
jp 0x546a35
dec edi
fld dword [esp + 0x2c]
fmul dword [esp + 0x44]
fmul qword [0x673620]
fstp dword [0x74b4c8]
fld dword [0x74b4c8]
fistp dword [0x74b4cc]
fild dword [0x74b4cc]
mov esi, dword [0x74b4cc]
fld dword [0x74b4c8]
fcompp
fnstsw ax
test ah, 5
jp 0x546a71
dec esi
fld dword [esp + 0x10]
fmul dword [esp + 0x44]
fmul qword [0x673620]
fstp dword [0x74b4c8]
fld dword [0x74b4c8]
fistp dword [0x74b4cc]
fild dword [0x74b4cc]
fld dword [0x74b4c8]
fcompp
fnstsw ax
test ah, 5
mov eax, dword [0x74b4cc]
jp 0x546aac
dec eax
mov ebx, edx
shl ebx, 8
or ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, eax
je 0x546bc2
fld dword [esp + 0x24]
shl edx, 0x18
fst dword [ecx]
add ecx, 0x10
fld dword [esp + 0x78]
or edx, 0xff
fst dword [ecx - 0xc]
mov dword [ecx - 4], edx
fild dword [esp + 0x18]
shl edi, 0x18
add ecx, 0x10
mov edx, edi
fmul dword [ebp + 0x39138]
or edx, 0xffffff
shl esi, 0x18
add ecx, 0x10
fstp dword [esp + 0x18]
or esi, 0xffffff
fld dword [esp + 0x18]
mov edi, dword [esp + 0x64]
fst dword [ecx - 0x28]
mov dword [ecx - 0x14], edx
fxch st(2)
add ecx, 0x10
fst dword [ecx - 0x30]
add ecx, 0x10
fld st(1)
shl eax, 0x18
fld qword [0x678ff0]
or eax, 0xffffff
fsub st(1), st(0)
add ecx, 0x10
fxch st(1)
add dword [esp + 0x60], 6
mov byte [esp + 0x17], 1
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx - 0x4c]
fxch st(4)
fst dword [ecx - 0x48]
mov dword [ecx - 0x34], esi
fld st(2)
fadd st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx - 0x40]
fxch st(4)
fst dword [ecx - 0x3c]
fxch st(1)
fst dword [ecx - 0x38]
mov dword [ecx - 0x24], esi
fxch st(4)
mov esi, dword [esp + 0x80]
fst dword [ecx - 0x30]
fxch st(1)
fst dword [ecx - 0x2c]
fxch st(4)
fst dword [ecx - 0x28]
mov dword [ecx - 0x14], edx
mov edx, dword [esp + 0x20]
fxch st(3)
fst dword [ecx - 0x20]
fxch st(5)
fst dword [ecx - 0x1c]
fxch st(3)
fst dword [ecx - 0x18]
mov dword [ecx - 4], eax
fxch st(1)
fstp dword [ecx - 0x10]
fxch st(2)
fstp dword [ecx - 0xc]
fxch st(1)
fstp dword [ecx - 8]
fld dword [esp + 0x70]
fld qword [0x689840]
fxch st(1)
fxch st(4)
fxch st(1)
fxch st(3)
jmp 0x546bf1
fld dword [esp + 0x70]
mov esi, dword [esp + 0x80]
fld dword [esp + 0x24]
mov edx, dword [esp + 0x20]
fld qword [0x689840]
mov edi, dword [esp + 0x64]
fld qword [0x678ff0]
fld dword [esp + 0x78]
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
mov ebx, dword [esp + 0x54]
fxch st(1)
add dword [esp + 0x68], 0x18
fadd st(2)
inc ebx
add edi, 0x18
lea eax, [esi + 0x10]
fstp dword [esp + 0x24]
mov dword [esp + 0x64], edi
mov dword [esp + 0x54], ebx
cmp ebx, eax
jbe 0x54674c
mov ebx, dword [esp + 0x9c]
fstp st(0)
fld dword [esp + 0x40]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
fadd st(1)
add dword [esp + 0x48], 0x106
add dword [esp + 0x5c], 0x183
sub dword [esp + 0x6c], 0xffffff80
fstp dword [esp + 0x40]
cmp dword [esp + 0x28], eax
jbe 0x546709
mov ecx, dword [esp + 0x3c]
fstp st(0)
mov edx, dword [esp + 0x38]
fstp st(0)
fstp st(0)
cmp cx, dx
jbe 0x546c73
movzx eax, cx
jmp 0x546c76
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
movzx eax, dx
cmp word [esp + 0x4c], ax
ja 0x546c88
cmp dx, cx
seta cl
inc cl
mov byte [ebx + 0x44], cl
fld dword [esp + 0x50]
mov dl, byte [esp + 0x17]
fstp dword [ebx + 0x10]
lea eax, [esp + 0xa4]
fld dword [esp + 0x58]
push eax
mov ecx, ebx
fstp dword [ebx + 0x14]
mov byte [ebx + 0x19], dl
call fcn.005348e0
cmp byte [esp + 0x17], 0
je 0x546cc7
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x1bc0]
push edx
mov ecx, ebx
call fcn.00534340
mov byte [ebx + 0x45], 0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x7bac
ret 8