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

Disassembly:
sub esp, 0xc0
cmp byte [esi + 3], 3
jb 0x504e1e
mov byte [esp + 0xd], 0xf
mov dword [esp + 0x94], 0x5cd3b8
jmp 0x504e2e
mov byte [esp + 0xd], 7
mov dword [esp + 0x94], 0x5cd360
mov al, byte [esi + 0x1b]
test al, al
je 0x504e42
cmp al, 3
je 0x504e42
mov al, byte [esi + 6]
mov byte [esp + 1], al
jmp 0x504e47
mov byte [esp + 1], 0xb
xor dl, dl
cmp byte [esi + 0x2d5], dl
mov byte [esp + 2], dl
jbe 0x5059a5
fld qword [0x5cd628]
push ebx
fld qword [0x5a3c50]
push ebp
fld qword [0x5edbe0]
push edi
fld dword [esp + 0x3c]
cmp dl, byte [esi + 0x2d6]
mov ecx, dword [esi + 0x2e0]
mov eax, dword [esi + 0x2dc]
movzx ebp, dl
mov cl, byte [ecx + ebp*2]
mov dword [esp + 0x94], ebp
mov byte [esp + 0xf], cl
jae 0x504e9e
mov al, byte [eax + ebp]
add al, 1
jmp 0x504ea2
mov al, byte [eax + ebp + 1]
mov byte [esp + 0x18], al
xor al, al
cmp byte [esi + 9], al
mov byte [esp + 0x1a], al
jbe 0x505987
movzx edx, byte [esp + 0x19]
movzx ecx, cl
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
jmp 0x504ecb
mov ecx, dword [esp + 0x60]
cmp byte [esi + 4], 3
movzx edi, al
jae 0x505087
mov edx, dword [esp + 0x5c]
fstp st(3)
mov eax, edi
fstp st(1)
shl eax, 4
add eax, edi
lea ecx, [ecx + eax*2]
lea eax, [ecx + esi]
movsx ecx, byte [eax + 0x8c]
lea ebx, [edx + ecx]
mov edx, dword [esp + 0xa0]
fld dword [edx + ebx*4]
mov ebx, dword [esp + 0x5c]
sub ebx, ecx
fstp dword [esp + 0x10]
movsx ecx, byte [eax + 0x136]
fld dword [edx + ebx*4]
add ecx, ecx
fstp dword [esp + 0x40]
add ecx, ecx
cmp byte [esi + 3], 3
fld dword [ecx + 0x5cc160]
fstp dword [esp + 0x14]
fld dword [ecx + 0x5cc180]
fstp dword [esp + 0x34]
jb 0x504f98
cmp byte [eax + 0x8c], 0
jge 0x504f71
movsx ecx, byte [eax + 0x8c]
movsx eax, byte [eax + 0x136]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub eax, ecx
add eax, eax
add eax, eax
fld dword [eax + 0x5cc3a0]
fstp dword [esp + 0x2c]
fld dword [eax + 0x5cc5a0]
fchs
jmp 0x504ff4
movsx edx, byte [eax + 0x8c]
movsx eax, byte [eax + 0x136]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
fld dword [eax + 0x5cc3a0]
fstp dword [esp + 0x2c]
fld dword [eax + 0x5cc5a0]
jmp 0x504ff4
cmp byte [eax + 0x8c], 0
jge 0x504fcf
movsx ecx, byte [eax + 0x8c]
movsx eax, byte [eax + 0x136]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub eax, ecx
add eax, eax
add eax, eax
fld dword [eax + 0x5cc1a0]
fstp dword [esp + 0x2c]
fld dword [eax + 0x5cc2a0]
fchs
jmp 0x504ff4
movsx edx, byte [eax + 0x8c]
movsx eax, byte [eax + 0x136]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
fld dword [eax + 0x5cc1a0]
fstp dword [esp + 0x2c]
fld dword [eax + 0x5cc2a0]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fld st(0)
fld dword [esp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fxch st(1)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
fmulp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fld st(0)
fld dword [esp + 0x34]
fld st(0)
fsubp st(2)
fld dword [esp + 0x40]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x6c]
faddp st(2)
fld dword [esp + 0x10]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x7c]
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x2c]
fld st(0)
faddp st(2)
fxch st(1)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x74]
fsubp st(1)
fmulp st(1)
fstp dword [esp + 0x64]
fld qword [0x5a3c50]
jmp 0x505174
mov edx, edi
shl edx, 4
add edx, edi
lea eax, [ecx + edx*2]
movsx ecx, byte [eax + esi + 0x8c]
add ecx, dword [esp + 0x5c]
lea ebx, [eax + esi]
movsx eax, byte [ebx + 0x8c]
cdq
xor eax, edx
add ecx, ecx
sub eax, edx
movsx edx, byte [ebx + 0x136]
add ecx, ecx
add ecx, ecx
cmp byte [esi + 3], 3
lea ebx, [edx + ecx]
jb 0x5050f8
fld dword [ebx*4 + 0x5cc980]
mov ebx, edx
sub ebx, ecx
fstp dword [esp + 0x2c]
fld dword [ebx*4 + 0x5ccd40]
movzx ecx, al
lea eax, [edx + ecx*8]
fstp dword [esp + 0x34]
add eax, eax
add eax, eax
fld dword [eax + 0x5cce60]
fstp dword [esp + 0x30]
fld dword [eax + 0x5cd160]
jmp 0x50512c
fld dword [ebx*4 + 0x5cc7a0]
mov ebx, edx
sub ebx, ecx
fstp dword [esp + 0x2c]
fld dword [ebx*4 + 0x5cc960]
movzx ecx, al
lea eax, [edx + ecx*8]
fstp dword [esp + 0x34]
add eax, eax
add eax, eax
fld dword [eax + 0x5ccd60]
fstp dword [esp + 0x30]
fld dword [eax + 0x5cd060]
fstp dword [esp + 0x14]
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x2c]
fld st(0)
fmulp st(2)
fxch st(1)
fmul st(6)
fstp dword [esp + 0x6c]
fld dword [esp + 0x34]
fld st(0)
fmulp st(3)
fxch st(2)
fmul st(6)
fstp dword [esp + 0x7c]
fchs
fld dword [esp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fmul st(6)
fstp dword [esp + 0x74]
fmulp st(1)
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x64]
fxch st(1)
cmp byte [esi + 0x1a], 0
je 0x505448
mov dl, byte [esp + 0xd]
cmp byte [esp + 0xf], dl
jae 0x505448
mov bl, byte [esi + 0x564c]
fstp st(2)
mov edx, dword [esp + 0x60]
movsx eax, bl
lea ecx, [eax + edx*2 + 0xaca]
lea ecx, [esi + ecx*8]
mov dword [esp + 0x14], ecx
fld dword [ecx]
lea ecx, [eax + edx*2]
fmul st(2)
lea eax, [eax + edx*2 + 0xaf2]
lea eax, [esi + eax*8]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x1c]
lea ecx, [esi + ecx*8]
fld dword [ecx + 0x5654]
fmul st(2)
fstp dword [esp + 0x20]
fld dword [eax]
mov eax, edi
shl eax, 4
fmul st(2)
add eax, edx
add eax, edi
lea ebp, [eax + esi]
fstp dword [esp + 0x24]
movsx eax, byte [ebp + 0x1e0]
fld dword [ecx + 0x5794]
fmulp st(2)
cdq
fxch st(1)
xor eax, edx
fstp dword [esp + 0x28]
sub eax, edx
mov edx, dword [esp + 0x14]
fld dword [eax*4 + 0x5cd594]
fstp dword [edx]
movsx eax, byte [ebp + 0x1e0]
cdq
xor eax, edx
sub eax, edx
fld dword [eax*4 + 0x5cd5b8]
fstp dword [ecx + 0x5654]
movsx eax, byte [ebp + 0x235]
cdq
xor eax, edx
sub eax, edx
fld dword [eax*4 + 0x5cd594]
mov eax, dword [esp + 0x34]
fstp dword [eax]
movsx eax, byte [ebp + 0x235]
cdq
xor eax, edx
sub eax, edx
test bl, bl
mov edx, dword [esp + 0x14]
fld dword [eax*4 + 0x5cd5b8]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [ecx + 0x5794]
fld dword [esp + 0x1c]
fadd dword [edx]
fstp dword [esp + 0x1c]
fld dword [ecx + 0x5654]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [eax]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
jne 0x505297
mov bl, 2
mov edx, dword [esp + 0x60]
add bl, 0xff
movsx eax, bl
lea ecx, [eax + edx*2 + 0xaca]
fld dword [esi + ecx*8]
lea ecx, [eax + edx*2]
fmul st(1)
lea ecx, [esi + ecx*8]
lea edx, [eax + edx*2 + 0xaf2]
lea eax, [esp + 0x24]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ecx + 0x5654]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esi + edx*8]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [ecx + 0x5794]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
call fcn.00504de0
lea eax, [esp + 0x1c]
fstp dword [esp + 0x10]
call fcn.00504de0
fstp dword [esp + 0x40]
fldz
fld st(0)
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
fld dword [esp + 0x28]
fld dword [esp + 0x24]
jnp 0x50533a
fld st(0)
fdiv st(3)
fstp dword [esp + 0xac]
fld st(1)
fdiv st(3)
fstp dword [esp + 0xb0]
jmp 0x50534c
fxch st(3)
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fxch st(3)
fld dword [esp + 0x40]
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x10]
fld st(2)
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x5053a8
fstp st(3)
fld st(0)
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld st(3)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv st(5)
fstp dword [esp + 0x84]
fxch st(2)
fmulp st(1)
fxch st(2)
fmulp st(1)
fsubp st(1)
fstp dword [esp + 0x10]
fdivr dword [esp + 0x10]
jmp 0x5053b5
fstp st(0)
fstp st(0)
fstp st(0)
fst dword [esp + 0x84]
fstp dword [esp + 0x88]
mov ebp, dword [esp + 0x94]
fld dword [esp + 0xb0]
fld st(0)
fld dword [esp + 0x6c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x88]
fld st(0)
fld dword [esp + 0x7c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x74]
fld st(0)
fmulp st(5)
fxch st(4)
fstp dword [esp + 0x78]
fld dword [esp + 0x64]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x68]
fld dword [esp + 0xac]
fld st(0)
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x6c]
fld dword [esp + 0x84]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x7c]
fxch st(2)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x74]
fmulp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x3c]
jmp 0x50544c
fstp st(0)
fstp st(0)
movzx eax, byte [edi + esi + 0xb]
movzx ecx, byte [edi + esi + 0xa]
lea edx, [edi + esi + 0xb]
lea edi, [edi + esi + 0xa]
sub eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x6c]
fld st(0)
fsub dword [esi + ebp*8 + 0x500c]
fld dword [esp + 0x10]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0xbc]
fld dword [esp + 0x7c]
fld st(0)
fsub dword [esi + ebp*8 + 0x519c]
fdiv st(2)
fstp dword [esp + 0x8c]
fld dword [esp + 0x74]
fld st(0)
fsub dword [esi + ebp*8 + 0x532c]
fdiv st(3)
fstp dword [esp + 0x98]
fld dword [esp + 0x64]
fld st(0)
fsub dword [esi + ebp*8 + 0x54bc]
fdiv st(4)
fstp dword [esp + 0xa4]
fld dword [esi + ebp*8 + 0x500c]
fstp dword [esp + 0x38]
fld dword [esi + ebp*8 + 0x519c]
fstp dword [esp + 0x54]
fld dword [esi + ebp*8 + 0x532c]
fstp dword [esp + 0x4c]
fld dword [esi + ebp*8 + 0x54bc]
fstp dword [esp + 0x44]
fxch st(4)
fstp dword [esi + ebp*8 + 0x500c]
fxch st(1)
fstp dword [esi + ebp*8 + 0x519c]
fstp dword [esi + ebp*8 + 0x532c]
fxch st(1)
fstp dword [esi + ebp*8 + 0x54bc]
cmp byte [esi + 0x1a], 0
je 0x50565b
mov al, byte [esp + 0xf]
cmp al, byte [esp + 0xd]
jae 0x50565b
fstp st(1)
mov ecx, dword [esi + 0x2e0]
test word [ecx + ebp*2], 0x1000
fld dword [esp + 0x70]
fld st(0)
fsub dword [esi + ebp*8 + 0x5010]
fdiv st(2)
fstp dword [esp + 0xc0]
fld dword [esp + 0x80]
fld st(0)
fsub dword [esi + ebp*8 + 0x51a0]
fdiv st(3)
fstp dword [esp + 0x90]
fld dword [esp + 0x78]
fld st(0)
fsub dword [esi + ebp*8 + 0x5330]
fdiv st(4)
fstp dword [esp + 0x9c]
fld dword [esp + 0x68]
fld st(0)
fsub dword [esi + ebp*8 + 0x54c0]
fdivrp st(5)
fxch st(4)
fstp dword [esp + 0xa8]
fld dword [esi + ebp*8 + 0x5010]
fstp dword [esp + 0x3c]
fld dword [esi + ebp*8 + 0x51a0]
fstp dword [esp + 0x58]
fld dword [esi + ebp*8 + 0x5330]
fstp dword [esp + 0x50]
fld dword [esi + ebp*8 + 0x54c0]
fstp dword [esp + 0x48]
je 0x505637
fld dword [esp + 0xc0]
fchs
fstp dword [esp + 0xc0]
fld dword [esp + 0x90]
fchs
fstp dword [esp + 0x90]
fld dword [esp + 0x9c]
fchs
fstp dword [esp + 0x9c]
fld dword [esp + 0xa8]
fchs
fstp dword [esp + 0xa8]
fld dword [esp + 0x3c]
fchs
fstp dword [esp + 0x3c]
fld dword [esp + 0x58]
fchs
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fchs
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fchs
fstp dword [esp + 0x48]
fxch st(2)
fstp dword [esi + ebp*8 + 0x5010]
fstp dword [esi + ebp*8 + 0x51a0]
fstp dword [esi + ebp*8 + 0x5330]
fstp dword [esi + ebp*8 + 0x54c0]
fld dword [esp + 0x3c]
jmp 0x50565d
fstp st(0)
mov cl, byte [edi]
cmp cl, byte [edx]
mov byte [esp + 0x1b], cl
jae 0x50593f
cmp byte [esi + 0x1a], 0
fld dword [esp + 0x38]
fadd dword [esp + 0xbc]
fstp dword [esp + 0x38]
fld dword [esp + 0x54]
fadd dword [esp + 0x8c]
fstp dword [esp + 0x54]
fld dword [esp + 0x4c]
fadd dword [esp + 0x98]
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fadd dword [esp + 0xa4]
fstp dword [esp + 0x44]
je 0x5056f3
mov al, byte [esp + 0xd]
cmp byte [esp + 0xf], al
jae 0x5056f3
fadd dword [esp + 0xc0]
fstp dword [esp + 0x3c]
fld dword [esp + 0x58]
fadd dword [esp + 0x90]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fadd dword [esp + 0xa8]
fstp dword [esp + 0x48]
fld dword [esp + 0x3c]
mov eax, dword [esi + 0x2dc]
fld dword [esp + 0x38]
mov al, byte [eax + ebp]
fld dword [esp + 0x4c]
mov bl, byte [esp + 0x18]
cmp al, bl
jae 0x50592c
sub bl, al
movzx edx, bl
movzx edi, cl
movzx ecx, al
mov dword [esp + 0x14], edx
jmp 0x505729
fld dword [esp + 0x38]
fld dword [esp + 0x4c]
mov al, byte [esp + 0xe]
cmp al, byte [esi + 0x2d6]
mov ebp, dword [esp + 0xdc]
mov eax, edi
jae 0x505775
mov edx, dword [esp + 0xd8]
shl eax, 5
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
fld dword [eax + edx]
fstp dword [esp + 0xc4]
fld dword [eax + edx + 4]
fstp dword [esp + 0xc8]
fld dword [eax + ebp]
fstp dword [esp + 0xb4]
fld dword [eax + ebp + 4]
jmp 0x5057b8
mov edx, dword [esp + 0xd0]
shl eax, 6
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
fld dword [eax + edx]
fstp dword [esp + 0xc4]
fld dword [eax + edx + 4]
mov edx, dword [esp + 0xd4]
fstp dword [esp + 0xc8]
fld dword [eax + edx]
fstp dword [esp + 0xb4]
fld dword [eax + edx + 4]
mov edx, dword [esp + 0xd8]
cmp byte [esi + 0x1a], 0
fstp dword [esp + 0xb8]
fld dword [esp + 0xb4]
fld st(0)
fmul st(2)
fld dword [esp + 0xc4]
fld st(0)
fmul st(5)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0xb8]
fld st(0)
fmulp st(4)
fld dword [esp + 0xc8]
fld st(0)
fmulp st(6)
fxch st(4)
faddp st(5)
fxch st(4)
fstp dword [esp + 0x20]
fld st(1)
fmul dword [esp + 0x44]
fld st(1)
fmul dword [esp + 0x54]
faddp st(1)
fstp dword [esp + 0x24]
fld st(3)
fmul dword [esp + 0x44]
fld st(3)
fmul dword [esp + 0x54]
faddp st(1)
fstp dword [esp + 0x28]
je 0x505899
mov al, byte [esp + 0xf]
cmp al, byte [esp + 0xd]
jae 0x505899
fld dword [esp + 0x1c]
fld st(4)
fmul dword [esp + 0x50]
fld st(4)
fmulp st(7)
faddp st(6)
fsubrp st(5)
fxch st(4)
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [esp + 0x50]
fld st(4)
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fld dword [esp + 0x48]
fmulp st(5)
fld dword [esp + 0x58]
fld st(0)
fmulp st(5)
fxch st(5)
faddp st(4)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fmul dword [esp + 0x48]
fxch st(3)
fmulp st(2)
fxch st(2)
faddp st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
jmp 0x5058a1
fstp st(1)
fstp st(0)
fstp st(1)
fstp st(0)
mov al, byte [esp + 0xe]
fld dword [esp + 0x1c]
cmp al, byte [esi + 0x2d6]
mov eax, edi
jae 0x5058da
shl eax, 5
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
fstp dword [eax + edx]
fld dword [esp + 0x20]
fstp dword [eax + edx + 4]
fld dword [esp + 0x24]
fstp dword [eax + ebp]
fld dword [esp + 0x28]
fstp dword [eax + ebp + 4]
jmp 0x50590d
mov edx, dword [esp + 0xd0]
shl eax, 6
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
fstp dword [eax + edx]
fld dword [esp + 0x20]
fstp dword [eax + edx + 4]
mov edx, dword [esp + 0xd4]
fld dword [esp + 0x24]
fstp dword [eax + edx]
fld dword [esp + 0x28]
fstp dword [eax + edx + 4]
add ecx, 1
sub dword [esp + 0x14], 1
jne 0x505721
mov edx, dword [esp + 0x40]
mov cl, byte [esp + 0x1b]
mov ebp, dword [esp + 0x94]
jmp 0x505930
fstp st(0)
fstp st(0)
add cl, 1
cmp cl, byte [edx]
mov byte [esp + 0x1b], cl
jb 0x50566b
add byte [esi + 0x564c], 1
cmp byte [esi + 0x564c], 2
jne 0x505956
mov byte [esi + 0x564c], 0
mov al, byte [esp + 0x1a]
fld qword [0x5edbe0]
fld qword [0x5a3c50]
add al, 1
cmp al, byte [esi + 9]
fld qword [0x5cd628]
fxch st(3)
mov byte [esp + 0x1a], al
fxch st(1)
fxch st(2)
fxch st(1)
jb 0x504ec7
mov dl, byte [esp + 0xe]
add dl, 1
cmp dl, byte [esi + 0x2d5]
mov byte [esp + 0xe], dl
jb 0x504e72
fstp st(3)
pop edi
fstp st(1)
pop ebp
fstp st(1)
pop ebx
fstp st(0)
add esp, 0xc0
ret