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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9040
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
cmp dword [edi + 0x360], 0
je 0x4511ce
cmp dword [edi + 0xb4], 0
je 0x4511ce
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 0x45139d
lea ecx, [ebp + 0xc]
call fcn.004287b0
push dword [ebp + 0xc]
call fcn.006be52c
add esp, 4
lea eax, [ebp - 0x38]
lea ecx, [edi + 0x434]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00456340
test eax, eax
je 0x451398
cmp dword [eax + 0xc], 0
je 0x451398
cmp dword [edi + 0x46c], 0
je 0x45122f
push dword [0x801a54]
lea eax, [ebp - 0x30]
push dword [edi + 0x464]
push dword [ebp + 0xc]
push eax
call fcn.0042b7c0
add esp, 0x10
jmp 0x451369
cmp dword [edi + 0x470], 0
je 0x4512fd
mov eax, dword [edi + 0x37c]
test eax, eax
jne 0x45124d
xor esi, esi
jmp 0x45139d
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x45125e
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x451273
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 0x451246
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x14]
test eax, eax
je 0x451246
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x451246
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jle 0x451246
push ebx
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x4512e1
mov ecx, dword [edi + 0x37c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4512d1
mov eax, dword [ecx]
push ebx
push esi
push dword [ebp + 0xc]
call dword [eax + 0x1c]
test eax, eax
jne 0x4512e1
push esi
call fcn.006b31f8
add esp, 4
xor esi, esi
jmp 0x45139d
push ebx
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.0042b990
add esp, 0xc
push esi
call fcn.006b31f8
mov ebx, dword [ebp - 0x34]
add esp, 4
jmp 0x451369
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.00428690
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451320
test al, 0x10
je 0x451359
mov edx, dword [edi + 0x464]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0047e110
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x451341
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00428a30
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004246d0
mov esi, dword [ebp - 0x30]
push esi
mov ecx, ebx
call fcn.0042d5f0
lea ecx, [ebp - 0x30]
call fcn.00428810
movsd xmm0, qword [ebp + 0x24]
sub esp, 8
movd xmm2, dword [ebp + 0x14]
mov ecx, ebx
movd xmm1, dword [ebp + 0x10]
cvtdq2pd xmm2, xmm2
movsd qword [esp], xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm3, xmm0
cvtdq2pd xmm1, xmm1
call fcn.0042cf00
mov esi, 1
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x4513ca
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4513ca
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.006b31f8
add esp, 4
mov ecx, dword [ebp + 0x20]
lea eax, [ecx - 0xc]
cmp eax, 0x7e8698
je 0x4513f0
lea eax, [ecx - 0xc]
push eax
call edi
test eax, eax
jg 0x4513f0
mov ecx, dword [ebp + 0x20]
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 - 0x14]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x24