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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
xor eax, eax
push edi
cmp dword [esi + 0x1c], 6
sete al
cmp ebp, 0x3ff8
mov dword [esp + 0x24], eax
jl 0x54f803
mov eax, dword [ebx + 0xc]
cdq
idiv dword [ebx + 8]
cmp eax, 0xf
jg 0x54f803
test byte [esi + 4], 1
je 0x54f28d
call fcn.00546a80
fsubr qword [esi + 0x68]
fstp qword [esi + 0x68]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x60]
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0x64]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x2c]
push eax
push ebp
push ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], edx
call fcn.005500d0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x74], ebp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x64]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + edx*4]
mov edx, dword [ecx + 0x44]
mov ecx, eax
mov edi, edx
mov dword [esp + 0x5c], edx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp eax, edi
jle 0x54f345
mov ecx, dword [edx]
mov esi, dword [esp + 0x40]
add edx, 4
dec eax
mov ecx, dword [esi + ecx*4]
mov dword [edx - 4], ecx
jne 0x54f333
mov esi, dword [esp + 0x7c]
push 0x800
push esi
call fcn.00546760
add esp, 8
push eax
push 0xffffffffffffffff
push 0x800
call fcn.00546c00
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x84], edi
mov dword [edx], edi
jle 0x54f7c5
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
sub eax, ebp
mov dword [esp + 0x1c], eax
mov eax, edx
mov edx, dword [esp + 0x28]
sub ecx, ebp
sub eax, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x84]
mov edx, dword [eax]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
cmp dword [eax + edx*4], esi
jne 0x54f7a3
mov eax, dword [esp + 0x88]
mov ebx, dword [eax + edx*4]
mov eax, dword [esp + 0x2c]
cmp eax, 1
mov dword [esp + 0x68], ebx
jne 0x54f408
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebp], eax
jmp 0x54f42d
mov esi, edx
mov edi, dword [esp + 0x20]
imul esi, eax
lea ecx, [eax*4]
mov eax, dword [esp + 0x4c]
lea esi, [eax + esi*4]
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 eax, dword [esp + 0x24]
test eax, eax
je 0x54f43f
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + edx*4]
mov dword [ebp], eax
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
xor esi, esi
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + ebp], eax
mov eax, dword [edi + edx*4 + 4]
mov ecx, dword [edi + edx*4]
cmp ecx, eax
jge 0x54f53d
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
sub edi, ebx
sub eax, ecx
mov dword [esp + 0x8c], edx
lea edx, [ebx + ecx*4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
jmp 0x54f48e
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + edx]
mov ebx, dword [esp + 0x18]
mov eax, ecx
and eax, 0x7ff
mov edi, dword [ebx + eax*4]
cmp edi, 0xffffffff
jne 0x54f4c5
mov dword [ebp], ecx
mov ecx, dword [esp + 0x8c]
mov edi, dword [edx]
add ebp, 4
mov dword [ecx], edi
mov dword [ebx + eax*4], esi
inc esi
add ecx, 4
mov dword [esp + 0x8c], ecx
jmp 0x54f51b
mov ebx, dword [esp + 0x14]
shl edi, 2
cmp dword [ebx + edi], ecx
jne 0x54f4dc
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
add dword [eax + edi], ecx
jmp 0x54f51b
xor eax, eax
test esi, esi
jle 0x54f4fb
mov edi, ebx
cmp dword [edi], ecx
je 0x54f4f2
inc eax
add edi, 4
cmp eax, esi
jl 0x54f4e4
jmp 0x54f4fb
mov edi, dword [esp + 0x10]
mov ebx, dword [edx]
add dword [edi + eax*4], ebx
cmp eax, esi
jne 0x54f51b
mov eax, dword [esp + 0x8c]
mov dword [ebp], ecx
mov ecx, dword [edx]
inc esi
mov dword [eax], ecx
add ebp, 4
add eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
add edx, 4
dec eax
mov dword [esp + 0x3c], eax
jne 0x54f48a
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
cmp edx, ebx
je 0x54f703
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x54f563
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
mov ecx, dword [edx + ebx*4]
mov edx, dword [eax + ebp]
add edx, ecx
mov dword [eax + ebp], edx
jmp 0x54f587
mov edx, dword [esp + 0x20]
mov ecx, ebx
imul ecx, eax
push 1
push edx
mov edx, dword [esp + 0x54]
push 1
lea ecx, [edx + ecx*4]
push ecx
push 0x3f800000
push eax
call fcn.00546cb0
add esp, 0x18
mov eax, dword [esp + 0x24]
test eax, eax
je 0x54f59e
mov edx, dword [esp + 0x50]
mov ecx, dword [ebp]
mov eax, dword [edx + ebx*4]
add ecx, eax
mov dword [ebp], ecx
mov edx, dword [esp + 0x54]
lea ecx, [ebx*4]
mov eax, dword [edx + ecx]
mov edx, dword [esp + 0x1c]
add dword [edx + ebp], eax
mov eax, dword [edi + ebx*4 + 4]
mov ecx, dword [edi + ecx]
cmp ecx, eax
jge 0x54f69b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
lea ebp, [edi + esi*4]
mov edi, dword [esp + 0x5c]
lea edx, [edx + esi*4]
sub edi, ebx
sub eax, ecx
mov dword [esp + 0x8c], edx
lea edx, [ebx + ecx*4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
jmp 0x54f5f4
mov edi, dword [esp + 0x28]
mov ecx, dword [edx + edi]
mov ebx, dword [esp + 0x18]
mov eax, ecx
and eax, 0x7ff
mov edi, dword [ebx + eax*4]
cmp edi, 0xffffffff
jne 0x54f62b
mov dword [ebp], ecx
mov ecx, dword [esp + 0x8c]
mov edi, dword [edx]
add ebp, 4
mov dword [ecx], edi
mov dword [ebx + eax*4], esi
inc esi
add ecx, 4
mov dword [esp + 0x8c], ecx
jmp 0x54f681
mov ebx, dword [esp + 0x14]
shl edi, 2
cmp dword [ebx + edi], ecx
jne 0x54f642
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
add dword [eax + edi], ecx
jmp 0x54f681
xor eax, eax
test esi, esi
jle 0x54f661
mov edi, ebx
cmp dword [edi], ecx
je 0x54f658
inc eax
add edi, 4
cmp eax, esi
jl 0x54f64a
jmp 0x54f661
mov edi, dword [esp + 0x10]
mov ebx, dword [edx]
add dword [edi + eax*4], ebx
cmp eax, esi
jne 0x54f681
mov eax, dword [esp + 0x8c]
mov dword [ebp], ecx
mov ecx, dword [edx]
inc esi
mov dword [eax], ecx
add ebp, 4
add eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
add edx, 4
dec eax
mov dword [esp + 0x3c], eax
jne 0x54f5f0
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x18]
mov eax, edi
mov ecx, dword [esp + 0x14]
and eax, 0x7ff
mov eax, dword [ebx + eax*4]
test eax, eax
jl 0x54f6d5
cmp dword [ecx + eax*4], edi
je 0x54f6d5
xor eax, eax
test esi, esi
jle 0x54f6d5
mov edx, ecx
cmp dword [edx], edi
je 0x54f6d1
inc eax
add edx, 4
cmp eax, esi
jl 0x54f6c5
mov edx, dword [esp + 0x1c]
test eax, eax
jl 0x54f712
shl eax, 2
cmp dword [ecx + eax], edi
jne 0x54f712
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + eax]
sub dword [edx + ebp], ebx
mov edx, dword [ecx + esi*4 - 4]
dec esi
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + esi*4]
mov dword [edx + eax], ebx
mov ebx, dword [esp + 0x18]
jmp 0x54f712
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x84]
test esi, esi
jle 0x54f742
mov eax, ecx
mov dword [esp + 0x84], esi
mov edx, dword [eax]
add eax, 4
and edx, 0x7ff
mov dword [ebx + edx*4], 0xffffffff
mov edx, dword [esp + 0x84]
dec edx
mov dword [esp + 0x84], edx
jne 0x54f71f
mov eax, edi
mov edx, dword [esp + 0x38]
and eax, 0x7ff
add ebp, 4
add edx, esi
inc edi
mov dword [ebx + eax*4], 0xffffffff
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
shl eax, 2
add ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x80]
mov dword [eax + ebp], edx
lea eax, [esi*4]
add ecx, eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
add edx, 4
dec eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x64], eax
jne 0x54f3c7
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push edx
push ebp
push ebx
mov dword [ebp + 0xc], ecx
call fcn.00550270
mov al, byte [esi + 4]
add esp, 0xc
test al, 1
je 0x54f7ed
call fcn.00546a80
fadd qword [esi + 0x68]
fstp qword [esi + 0x68]
push 0x800
push esi
call fcn.00546790
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push eax
push ecx
push ebp
push ebx
push esi
call fcn.0054f830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret