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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc50]
mov ecx, dword [eax + 0xb9c]
test ecx, ecx
push esi
push edi
mov dword [esp + 0x14], eax
jne 0x549c6e
mov esi, dword [ebp + 0x14]
fld qword [0x73b498]
mov eax, dword [ebx + 4]
fstp qword [esp + 0x28]
fld qword [0x73b498]
lea ecx, [esi*4]
mov edi, dword [eax + ecx]
fstp qword [esp + 0x30]
add eax, ecx
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
jne 0x549a00
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
jmp 0x549a00
mov ecx, dword [edi]
mov eax, dword [ecx + 0x480]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x484]
mov dword [esp + 0x38], eax
and eax, edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
and ecx, edx
or eax, ecx
je 0x549c4e
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0xe0]
and eax, ecx
mov ecx, dword [edi + 0xe4]
and ecx, edx
or eax, ecx
jne 0x549c4e
test esi, esi
je 0x549a60
lea edx, [esi + esi*2]
mov edx, dword [ebx + edx*8 + 0x70]
mov eax, edi
call fcn.00544b30
test eax, eax
jne 0x549c4e
mov edx, dword [ebp + 0x10]
fld qword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
sub esp, 8
fstp qword [esp]
push esi
push edx
push eax
push ecx
push edi
push ebx
call fcn.005489d0
fld qword [ebp + 0x18]
lea edx, [esi + esi*2 + 0xf]
fmul qword [ebx + edx*8]
lea eax, [ebx + edx*8]
lea ecx, [esi + esi*2]
shl ecx, 3
fstp qword [esp + 0x40]
mov dword [esp + 0x38], eax
fld qword [ebp + 0x20]
add esp, 0x20
fadd qword [ecx + ebx + 0x80]
mov dword [esp + 0x1c], ecx
fld qword [esp + 0x20]
fmul qword [0x76a5a0]
fadd st(1)
fst qword [esp + 0x40]
fcomp qword [ebx + 0xc20]
fnstsw ax
test ah, 1
je 0x549c45
cmp dword [ebp + 0x2c], 1
jne 0x549b55
fld qword [esp + 0x28]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x549b02
fld qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x549b02
cmp esi, dword [ebx + 0x20]
jne 0x549c45
mov eax, dword [edi]
cmp eax, dword [ebx + 0x18]
jne 0x549c45
fld qword [esp + 0x28]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x549b55
fld qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x549b55
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xe8]
and eax, edx
mov edx, dword [edi + 0xec]
and edx, dword [ebp + 0x10]
or eax, edx
je 0x549b49
mov edx, dword [esp + 0x18]
fld qword [edx]
fcomp qword [0x73e258]
fnstsw ax
test ah, 5
jp 0x549b55
fld qword [esp + 0x20]
fstp qword [esp + 0x28]
fst qword [esp + 0x30]
cmp dword [ebp + 0x28], 1
jbe 0x549be1
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
not eax
and eax, edx
mov edx, dword [ebp + 0x10]
not ecx
and ecx, edx
mov edx, eax
or edx, ecx
je 0x549bdd
mov edx, dword [ebx + 4]
mov edi, dword [edx + esi*4]
lea edx, [edx + esi*4]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xc]
mov edi, dword [edi]
mov dword [edx], edi
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov dword [edi], edx
mov edx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
dec edx
push edx
sub esp, 0x10
fstp qword [esp + 8]
lea edx, [esi + 1]
fld qword [esp + 0x38]
fstp qword [esp]
push edx
push ecx
push eax
push ebx
call fcn.00549990
add esp, 0x28
test eax, eax
jne 0x549c6e
mov eax, dword [ebx + 4]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov dword [eax], edx
mov dword [edi], ecx
mov edi, dword [esp + 0x10]
jmp 0x549c47
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x18]
fstp st(0)
test edx, edx
fld qword [esp + 0x40]
je 0x549c03
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*8 + 0x88]
cmp edx, dword [eax]
je 0x549c03
fadd qword [esp + 0x20]
cmp dword [ebp + 0x28], 1
je 0x549c16
fcom qword [ebx + 0xc20]
fnstsw ax
test ah, 5
jp 0x549c45
fsub qword [0x774d30]
add ecx, 0x18
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x78]
lea edi, [ebx + 0x648]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fstp qword [ebx + 0xc20]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0x14]
jmp 0x549c47
fstp st(0)
mov ecx, edi
call fcn.00544c30
mov eax, dword [esp + 0xc]
add eax, 4
mov dword [esp + 0xc], eax
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x5499f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret