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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
xor eax, eax
push edi
cmp dword [esi + 0x1c], 6
sete al
mov edi, eax
mov al, byte [esi + 4]
test al, 1
mov dword [esp + 0x38], edi
je 0x54f85c
call fcn.00546a80
fsubr qword [esi + 0x68]
fstp qword [esi + 0x68]
mov ebx, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x8c]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x2c]
push edi
push ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x48], eax
call fcn.005500d0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ebp, dword [eax + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x64]
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
push edi
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], ebp
call fcn.00546760
add esp, 8
push eax
push 0xffffffffffffffff
push edi
call fcn.00546c00
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov edx, dword [ecx + edx*4]
add esp, 0xc
mov eax, dword [eax + 0x44]
mov ecx, edx
mov edi, eax
mov dword [esp + 0x60], eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp edx, esi
jle 0x54f946
mov ecx, eax
mov eax, dword [ecx]
mov edi, dword [esp + 0x3c]
add ecx, 4
dec edx
mov eax, dword [edi + eax*4]
mov dword [ecx - 4], eax
jne 0x54f934
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x88], esi
mov dword [ecx], esi
jle 0x54fc7c
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
sub eax, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
sub ecx, ebx
sub eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov edi, dword [eax]
mov dword [esp + 0x44], edi
cmp dword [edx + edi*4], esi
jne 0x54fc5b
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + edi*4]
mov eax, dword [esp + 0x28]
cmp eax, 1
mov dword [esp + 0x50], edx
jne 0x54f9eb
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edi*4]
mov dword [ecx + ebx], eax
jmp 0x54fa15
imul edi, eax
lea ecx, [eax*4]
mov eax, dword [esp + 0x4c]
lea esi, [eax + edi*4]
mov edi, dword [esp + 0x90]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x54fa26
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + edi*4]
mov dword [ebx], eax
mov ecx, dword [esp + 0x58]
xor esi, esi
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edi*4 + 4]
mov ecx, dword [ecx + edi*4]
cmp ecx, eax
jge 0x54fab5
mov ebx, dword [esp + 0x5c]
mov edi, ebp
mov ebp, dword [esp + 0x60]
sub ebp, ebx
lea edx, [ebx + ecx*4]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x2c]
sub ebx, ebp
sub eax, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + edx]
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + ecx*4]
cmp ebx, 0xffffffff
jne 0x54fa93
mov ebx, dword [esp + 0x20]
mov dword [ebx + edi], ecx
mov ebx, dword [edx]
mov dword [edi], ebx
mov dword [eax + ecx*4], esi
inc esi
add edi, 4
jmp 0x54fa9f
mov ecx, dword [edx]
mov eax, dword [ebp + ebx*4]
add eax, ecx
mov dword [ebp + ebx*4], eax
mov eax, dword [esp + 0x40]
add edx, 4
dec eax
mov dword [esp + 0x40], eax
jne 0x54fa6c
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x44], edx
je 0x54fbe2
mov eax, dword [esp + 0x28]
cmp eax, 1
jne 0x54fad8
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x68]
add dword [eax + ebx], ecx
jmp 0x54fb01
mov ecx, dword [esp + 0x90]
imul edx, eax
push 1
push ecx
mov ecx, dword [esp + 0x54]
push 1
lea edx, [ecx + edx*4]
push edx
push 0x3f800000
push eax
call fcn.00546cb0
mov edx, dword [esp + 0x68]
add esp, 0x18
mov eax, dword [esp + 0x38]
test eax, eax
je 0x54fb16
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx]
add eax, ecx
mov dword [ebx], eax
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x24]
lea ecx, [edx*4]
mov eax, dword [eax + ecx]
add dword [edi + ebx], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + ecx]
cmp ecx, eax
mov dword [esp + 0x64], ecx
jge 0x54fbb2
mov edi, dword [esp + 0x5c]
lea edx, [ebp + esi*4]
mov ebp, dword [esp + 0x60]
sub ebp, edi
lea ecx, [edi + ecx*4]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x2c]
sub edi, ebp
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [ecx + eax]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
jne 0x54fb9a
mov edi, dword [esp + 0x20]
mov dword [edx + edi], eax
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [esp + 0x14]
mov dword [edi + eax*4], esi
inc esi
add edx, 4
jmp 0x54fba0
mov eax, dword [ecx]
add dword [ebp + edi*4], eax
mov eax, dword [esp + 0x50]
add ecx, 4
dec eax
mov dword [esp + 0x50], eax
jne 0x54fb6f
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + ebx]
cmp eax, 0xffffffff
je 0x54fbe2
shl eax, 2
mov edx, dword [ebp + eax]
sub dword [edi + ebx], edx
mov edx, dword [esp + 0x10]
dec esi
mov edi, dword [edx + esi*4]
mov dword [edx + eax], edi
mov edx, dword [ebp + esi*4]
mov dword [ebp + eax], edx
mov dword [ecx + ebx], 0xffffffff
test esi, esi
jle 0x54fbff
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [eax]
mov edi, dword [esp + 0x14]
add eax, 4
dec ecx
mov dword [edi + edx*4], 0xffffffff
jne 0x54fbec
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
add eax, esi
inc ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x28]
shl ecx, 2
add edi, ecx
mov ecx, dword [esp + 0x10]
shl esi, 2
add ebx, 4
add ecx, esi
add ebp, esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x64], ebx
mov dword [edx + ebx], eax
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
add edx, 4
dec eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x6c], eax
jne 0x54f9b1
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ebx
mov dword [eax + 0xc], ecx
call fcn.00550270
mov edi, dword [esp + 0x8c]
add esp, 0xc
test byte [edi + 4], 1
je 0x54fcae
call fcn.00546a80
fadd qword [edi + 0x68]
fstp qword [edi + 0x68]
push esi
push edi
call fcn.00546790
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret