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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x4c4b80]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp ecx, 2
jne 0x45422b
mov eax, dword [0xd2d274]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*8 + 0x10]
jmp 0x454257
test ecx, ecx
jne 0x45423f
mov eax, dword [0xd2d290]
mov edx, ebx
shl edx, 6
mov edx, dword [edx + eax + 0x30]
jmp 0x454257
cmp ecx, 1
jne 0x454254
mov eax, dword [0xd2d29c]
mov edx, ebx
imul edx, edx, 0x68
mov edx, dword [edx + eax + 0x5c]
jmp 0x454257
or edx, 0xffffffff
lea eax, [edx + edx*2]
shl eax, 4
add eax, dword [0xd2d238]
cmp dword [eax + 0xc], ebx
jne 0x454272
cmp dword [eax + 0x14], ecx
jne 0x454272
mov ecx, dword [eax + 4]
jmp 0x454274
mov ecx, dword [eax]
mov edi, edx
jmp 0x454280
mov esi, dword [0xd2d22c]
lea edx, [ecx + ecx*2]
add edx, edx
cmp dword [esi + edx*8 + 0x18], 3
jne 0x4546a2
cmp dword [eax], ecx
jne 0x45429f
mov edx, dword [eax + 0x18]
jmp 0x4542a2
mov edx, dword [eax + 0x20]
lea eax, [edx + edx*2]
shl eax, 4
add eax, dword [0xd2d238]
mov esi, dword [eax]
cmp esi, ecx
jne 0x4542b9
mov ecx, dword [eax + 4]
jmp 0x4542bb
mov ecx, esi
cmp edx, edi
jne 0x454280
mov ecx, dword [esp + 0x10]
shl ecx, 6
add ecx, dword [0xd2d290]
mov edx, dword [ecx]
cmp edx, ebx
je 0x4546b6
cmp dword [ecx + 4], ebx
je 0x4546b6
mov edi, dword [0xd2d274]
lea esi, [ebx + ebx*4]
add esi, esi
add esi, esi
add esi, esi
fld qword [esi + edi]
fst qword [esp + 0x40]
fld qword [esi + edi + 8]
fst qword [esp + 0x48]
fld qword [ecx + 0x10]
fst qword [esp + 0x28]
fld qword [ecx + 0x18]
fst qword [esp + 0x18]
fld st(2)
fmul st(1)
fld st(4)
fmul st(3)
faddp st(1)
fadd qword [ecx + 0x20]
fst qword [esp + 0x30]
fld qword [0x4b5878]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x45440a
fld qword [0x4b5c20]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4543ed
fld qword [ecx + 0x28]
lea eax, [edx + edx*4]
fstp qword [esp + 0x20]
lea eax, [edi + eax*8]
fld qword [eax]
fld qword [eax + 8]
fld st(6)
fsubrp st(2)
fxch st(1)
fmul st(3)
fld st(5)
fsubrp st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fst qword [0xd34618]
fld qword [esp + 0x20]
fadd st(2)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x454406
fcomp qword [0x4b5c20]
fnstsw ax
test ah, 5
jnp 0x4543ed
mov edi, dword [esp + 0x10]
fstp st(1)
push 2
fstp st(1)
push ebx
fstp st(0)
push 0
fstp st(1)
push edi
fstp st(0)
call fcn.00451530
push 1
push 0
push edi
call fcn.00451560
add esp, 0x1c
test al, al
je 0x4543d3
mov byte [0xd2d33c], 1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0048d046
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x40]
fld qword [esp + 0x18]
fld qword [esp + 0x28]
fld qword [0x4b5878]
fld qword [esp + 0x48]
fxch st(3)
fxch st(1)
fldz
fcomp qword [esp + 0x30]
fnstsw ax
fxch st(1)
test ah, 5
jp 0x45440e
fst qword [esp + 0x28]
fxch st(2)
fchs
jmp 0x454416
fstp st(0)
jmp 0x4543ed
fstp st(1)
jmp 0x4543ed
fchs
fst qword [esp + 0x28]
fxch st(2)
fst qword [esp + 0x30]
mov eax, dword [ebp + 0xc]
fld st(2)
fmulp st(5)
fxch st(4)
fchs
fld st(4)
fmulp st(4)
fsubrp st(3)
fxch st(2)
fst qword [esp + 0x40]
fld st(3)
fchs
fstp qword [esp + 0x58]
fxch st(1)
fst qword [esp + 0x60]
cmp eax, 2
jne 0x454450
mov ecx, dword [0xd2d274]
mov edi, dword [esi + ecx + 0x10]
jmp 0x45447d
test eax, eax
jne 0x454464
mov eax, dword [0xd2d290]
mov edx, ebx
shl edx, 6
mov edi, dword [edx + eax + 0x30]
jmp 0x45447d
cmp eax, 1
jne 0x45447a
mov edx, dword [0xd2d29c]
mov ecx, ebx
imul ecx, ecx, 0x68
mov edi, dword [ecx + edx + 0x5c]
jmp 0x45447d
or edi, 0xffffffff
mov eax, dword [0xd2d238]
lea esi, [edi + edi*2]
shl esi, 4
cmp dword [esi + eax + 0xc], ebx
jne 0x4544a0
mov ecx, dword [ebp + 0xc]
cmp dword [esi + eax + 0x14], ecx
jne 0x4544a0
mov ebx, dword [esi + eax + 4]
mov eax, dword [esi + eax]
jmp 0x4544ac
mov eax, dword [0xd2d238]
mov ebx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
lea edx, [eax + eax*2]
mov eax, dword [0xd2d22c]
add edx, edx
fld qword [eax + edx*8]
fld qword [eax + edx*8 + 8]
fld qword [eax + edx*8 + 0x10]
fstp qword [esp + 0x18]
fmul st(5)
fxch st(1)
fmul st(2)
faddp st(1)
fadd st(2)
fst qword [0xd345b0]
fcom st(3)
fnstsw ax
test ah, 0x41
jp 0x4544f4
fcomp qword [0x4b5c20]
fnstsw ax
test ah, 5
jp 0x4544f0
or edx, 0xffffffff
jmp 0x4544fb
xor edx, edx
jmp 0x4544fb
fstp st(0)
mov edx, 1
mov dword [esp + 0x10], edi
mov eax, dword [0xd2d22c]
lea ecx, [ebx + ebx*2]
add ecx, ecx
fld qword [eax + ecx*8]
fld qword [eax + ecx*8 + 8]
fld qword [eax + ecx*8 + 0x10]
fst qword [esp + 0x50]
fld st(3)
fmulp st(3)
fld st(6)
fmulp st(2)
fxch st(2)
faddp st(1)
fadd st(3)
fst qword [0xd345b0]
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x45454b
fcomp qword [0x4b5c20]
fnstsw ax
test ah, 5
jp 0x454547
or eax, 0xffffffff
jmp 0x454552
xor eax, eax
jmp 0x454552
fstp st(0)
mov eax, 1
neg edx
mov dword [esp + 0x14], eax
cmp eax, edx
jne 0x454600
fcom st(3)
fnstsw ax
test ah, 0x41
jnp 0x454600
fxch st(3)
fcom qword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x454619
fstp st(1)
lea ecx, [esp + 0x20]
fstp st(3)
push ecx
fstp st(2)
lea edx, [esp + 0x6c]
push edx
fstp st(1)
push edi
fstp st(0)
fld qword [esp + 0x64]
sub esp, 0x10
mov eax, esp
fstp qword [eax]
fld qword [esp + 0x7c]
fstp qword [eax + 8]
mov eax, dword [esp + 0x58]
push eax
call fcn.00459dd0
add esp, 0x20
test al, al
je 0x4545e6
fld qword [0xd2d470]
sub esp, 8
fstp qword [esp]
push 0
fld qword [esp + 0x74]
sub esp, 0x10
mov eax, esp
fstp qword [eax]
push edi
fld qword [esp + 0x90]
fstp qword [eax + 8]
call fcn.0044ef20
add esp, 0x20
test al, al
jne 0x45465c
fld qword [esp + 0x50]
fld qword [0x4b5878]
fld qword [esp + 0x40]
fld qword [esp + 0x30]
fld qword [esp + 0x28]
fxch st(1)
fxch st(4)
mov ecx, dword [0xd2d238]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp dword [esi + ecx], ebx
jne 0x45461d
mov edi, dword [esi + ecx + 0x18]
jmp 0x454621
fxch st(3)
jmp 0x454600
mov edi, dword [esi + ecx + 0x20]
lea esi, [edi + edi*2]
shl esi, 4
mov eax, dword [esi + ecx]
cmp eax, ebx
jne 0x454634
mov ebx, dword [esi + ecx + 4]
jmp 0x454636
mov ebx, eax
cmp edi, dword [esp + 0x10]
jne 0x4544ff
fstp st(0)
xor al, al
fstp st(2)
fstp st(0)
fstp st(0)
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0048d046
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x20]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esp + 0x88]
fstp qword [esp + 8]
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.0043ed80
mov esi, eax
push 1
push esi
push edi
call fcn.0043f720
mov edx, dword [0xd2d22c]
lea ecx, [esi + esi*2]
add esp, 0x24
add ecx, ecx
mov dword [edx + ecx*8 + 0x18], 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0048d046
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x4546cd
mov ecx, dword [0xd2d274]
lea eax, [ebx + ebx*4]
mov esi, dword [ecx + eax*8 + 0x10]
jmp 0x4546fa
test eax, eax
jne 0x4546e1
mov eax, dword [0xd2d290]
mov edx, ebx
shl edx, 6
mov esi, dword [edx + eax + 0x30]
jmp 0x4546fa
cmp eax, 1
jne 0x4546f7
mov edx, dword [0xd2d29c]
mov ecx, ebx
imul ecx, ecx, 0x68
mov esi, dword [ecx + edx + 0x5c]
jmp 0x4546fa
or esi, 0xffffffff
mov ecx, dword [0xd2d238]
lea eax, [esi + esi*2]
shl eax, 4
add ecx, eax
cmp dword [ecx + 0xc], ebx
jne 0x45471a
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], edx
jne 0x45471a
mov eax, dword [ecx + 4]
jmp 0x45471c
mov eax, dword [ecx]
mov edi, dword [0xd2d22c]
mov dword [esp + 0x10], esi
lea edx, [eax + eax*2]
add edx, edx
cmp ebx, dword [edi + edx*8 + 0x20]
je 0x454770
cmp dword [ecx], eax
jne 0x45473a
mov esi, dword [ecx + 0x18]
jmp 0x45473d
mov esi, dword [ecx + 0x20]
lea ecx, [esi + esi*2]
shl ecx, 4
add ecx, dword [0xd2d238]
mov edx, dword [ecx]
cmp edx, eax
jne 0x454754
mov eax, dword [ecx + 4]
jmp 0x454756
mov eax, edx
cmp esi, dword [esp + 0x10]
jne 0x454726
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0048d046
mov esp, ebp
pop ebp
ret
mov ecx, dword [0xd2d22c]
lea eax, [eax + eax*2]
add eax, eax
fld qword [ecx + eax*8]
sub esp, 0x18
fld qword [ecx + eax*8 + 8]
fld qword [ecx + eax*8 + 0x10]
fstp qword [esp + 0x38]
fldz
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.0043ed80
mov edi, eax
push 0
push edi
push esi
call fcn.0043f720
mov edx, dword [0xd2d22c]
lea eax, [edi + edi*2]
add eax, eax
mov dword [edx + eax*8 + 0x18], 0
mov ecx, dword [0xd2d22c]
mov dword [ecx + eax*8 + 0x20], ebx
mov edx, dword [0xd2d274]
lea ecx, [ebx + ebx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ecx + edx + 0x14], edi
mov edx, dword [0xd2d274]
mov dword [ecx + edx + 0x10], esi
mov esi, dword [0xd2d274]
add esp, 0x24
mov edx, 1
mov byte [ecx + esi + 0x19], dl
mov ecx, dword [0xd2d22c]
pop edi
mov dword [ecx + eax*8 + 0x18], edx
mov ecx, dword [esp + 0x78]
pop esi
pop ebx
xor ecx, esp
mov al, dl
call fcn.0048d046
mov esp, ebp
pop ebp
ret