Function at 0x479370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f056f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70f200]
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 ebx, dword [ecx + 0x14e4]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x30], ebx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.005bc230
add esp, 4
lea ecx, [ebp - 0x20]
push eax
call fcn.005dc570
push 0
push ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push esi
mov ecx, ebx
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call fcn.005bc230
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.005dc570
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005da0a0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.005da0a0
mov edi, 0x40
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], edi
mov esi, edi
call fcn.005dc3a0
cmp eax, 2
jle 0x479490
push 1
lea ecx, [ebp - 0x20]
call fcn.005dc440
cmp word [eax], 0x3a
je 0x479490
push 0
lea ecx, [ebp - 0x20]
call fcn.005dc440
cmp word [eax], 0x5c
je 0x479490
push 0
push 1
push 1
push 1
push 0x627924
lea ecx, [ebp - 0x20]
call fcn.005daa70
test eax, eax
je 0x47946c
push eax
lea ecx, [ebp - 0x20]
call fcn.005dad50
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x627930
lea ecx, [ebp - 0x20]
call fcn.005daa70
cmp eax, 3
jle 0x479490
dec eax
lea ecx, [ebp - 0x20]
push eax
call fcn.005dae00
lea ecx, [ebp - 0x2c]
call fcn.005dc3a0
cmp eax, 2
jle 0x479503
push 1
lea ecx, [ebp - 0x2c]
call fcn.005dc440
cmp word [eax], 0x3a
je 0x479503
push 0
lea ecx, [ebp - 0x2c]
call fcn.005dc440
cmp word [eax], 0x5c
je 0x479503
push 0
push 1
push 1
push 1
push 0x627924
lea ecx, [ebp - 0x2c]
call fcn.005daa70
test eax, eax
je 0x4794df
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dad50
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x627930
lea ecx, [ebp - 0x2c]
call fcn.005daa70
cmp eax, 3
jle 0x479503
dec eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.005dae00
lea ecx, [ebp - 0x20]
call fcn.005dc3a0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 2
jle 0x4795ff
lea ecx, [ebp - 0x2c]
call fcn.005dc3a0
cmp eax, 2
jle 0x4795ff
push 1
lea ecx, [ebp - 0x20]
call fcn.005dc440
cmp word [eax], 0x3a
jne 0x479576
push 1
lea ecx, [ebp - 0x2c]
call fcn.005dc440
cmp word [eax], 0x3a
jne 0x479576
push 0
lea ecx, [ebp - 0x2c]
call fcn.005dc440
push 0
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.005dc440
mov cx, word [eax]
mov eax, edi
cmp cx, word [esi]
mov ecx, 0x20
mov esi, edi
cmove eax, ecx
mov dword [ebp - 0x34], eax
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.005bb420
test eax, eax
js 0x4795ff
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call ebx
test eax, eax
je 0x4795ff
push 0
lea ecx, [ebp - 0x2c]
call fcn.005dbed0
mov ecx, eax
call fcn.005dc190
push eax
call ebx
neg eax
lea ecx, [ebp - 0x2c]
sbb edi, edi
and edi, 0xffffffe0
add edi, 0x40
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4795e4
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dbed0
mov ecx, eax
call fcn.005dc190
push eax
call ebx
test eax, eax
je 0x4795e4
mov edi, 0x20
jmp 0x4795e9
cmp edi, 0x20
jne 0x4795ff
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.005bb420
test eax, eax
mov ecx, 0x40
cmovs edi, ecx
lea ecx, [ebp - 0x20]
call fcn.005dc3a0
cmp eax, 2
jle 0x47969b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._ntuser.dat
lea ecx, [ebp - 0x20]
call fcn.005da780
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47965a
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call ebx
test eax, eax
jne 0x47965a
lea esi, [eax + 0x20]
jmp 0x47969b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.AppDataLocalMicrosoft
push 0
lea ecx, [ebp - 0x20]
call fcn.005dbed0
mov ecx, eax
call fcn.005da780
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call ebx
test eax, eax
mov eax, 0x20
cmovne esi, eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x30]
dec eax
push esi
push eax
mov ecx, ebx
call fcn.005bd3f0
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.005bd3f0
push dword [ebp - 0x34]
mov ecx, ebx
push dword [ebp + 0x14]
call fcn.005bd3f0
push edi
push dword [ebp + 0x18]
mov ecx, ebx
call fcn.005bd3f0
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x20]
call fcn.005dc430
mov al, 1
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.0041e1b5
mov esp, ebp
pop ebp
ret 0x14