Function at 0x450dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f8ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
cmp dword [edi + 0x360], 0
je 0x450e3b
cmp dword [edi + 0xb4], 0
je 0x450e3b
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00428690
mov ecx, dword [edi + 0xb4]
push ebx
call fcn.00450dd0
mov esi, eax
jmp 0x451115
cmp dword [edi + 0x46c], 0
je 0x450e64
push dword [0x801a54]
lea eax, [ebp - 0x30]
push dword [edi + 0x464]
push dword [ebp + 0xc]
push eax
call fcn.0042b7c0
add esp, 0x10
jmp 0x450fd8
cmp dword [edi + 0x470], 0
je 0x450f34
mov eax, dword [edi + 0x37c]
test eax, eax
jne 0x450e82
xor esi, esi
jmp 0x451115
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x450e93
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x450ea8
mov ecx, dword [edi + 0x37c]
push 0
push dword [edi + 0x464]
mov ecx, dword [ecx]
call fcn.00474320
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x450e7b
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x14]
test eax, eax
je 0x450e7b
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x450e7b
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x450e7b
push eax
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x450f19
mov ecx, dword [edi + 0x37c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x450f09
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push esi
push dword [ebp + 0xc]
call dword [eax + 0x1c]
test eax, eax
jne 0x450f19
push esi
call fcn.006b31f8
add esp, 4
xor esi, esi
jmp 0x451115
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.0042b990
push esi
call fcn.006b31f8
add esp, 0x10
jmp 0x450fd8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428690
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450f57
test al, 0x10
je 0x450fab
mov edx, dword [edi + 0x464]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0047e110
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x450f7a
mov esi, dword [esi]
test esi, esi
jne 0x450f82
xor eax, eax
jmp 0x450f89
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428920
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x450fa8
push dword [ebp - 0x28]
call fcn.006b31f8
add esp, 4
mov esi, dword [ebp - 0x2c]
push esi
mov ecx, ebx
call fcn.0042d5f0
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, 0x7e8698
je 0x450fd8
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x450fd8
push esi
call fcn.006b31f8
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.004287b0
push dword [ebp + 0xc]
call fcn.006be52c
add esp, 4
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x41c]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00456340
test eax, eax
je 0x451089
cmp dword [eax + 0xc], 1
jne 0x451089
mov esi, dword [0x7e7970]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0xffff00ff
call fcn.004455e0
push eax
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push ecx
lea ecx, [ebx + 0x20]
call fcn.0042b1b0
lea eax, [esi - 0xc]
add esp, 0x10
cmp eax, 0x7e8698
je 0x451110
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x451110
push esi
call fcn.006b31f8
add esp, 4
jmp 0x451110
mov eax, dword [edi + 0x340]
test eax, eax
jne 0x4510a3
cmp dword [edi + 0x344], eax
jne 0x4510a3
cmp dword [edi + 0x348], eax
je 0x4510e3
movd xmm3, dword [edi + 0x348]
movd xmm2, dword [edi + 0x344]
movss xmm0, dword [0x792190]
movd xmm1, eax
cvtdq2ps xmm3, xmm3
push ecx
mov ecx, ebx
mov dword [esp], 0
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
divss xmm3, xmm0
divss xmm2, xmm0
divss xmm1, xmm0
call fcn.0042d250
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xffff00ff
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x340]
call fcn.004455e0
push eax
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push ecx
lea ecx, [ebx + 0x20]
call fcn.0042b1b0
add esp, 0x10
mov esi, 1
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x451140
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x451140
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
push ecx
call fcn.006b31f8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8