Function at 0x51af90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65cde6
mov eax, dword fs:[0]
push eax
mov eax, 0x1af0
call fcn.005bdf80
mov eax, dword [0x6fc0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac8], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1ac0], ecx
lea ecx, [ebp - 0x1abc]
call fcn.004798f0
lea edx, [ebp - 0x1abc]
push edx
mov eax, dword [ebp - 0x1ac0]
push eax
call fcn.00469af0
mov ecx, eax
call fcn.0046de00
movzx ecx, al
test ecx, ecx
jne 0x51b00b
xor eax, eax
jmp 0x51b2ef
lea edx, [ebp - 0x107a]
push edx
lea ecx, [ebp - 0x58]
call fcn.00446a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0044d720
movzx eax, al
test eax, eax
jne 0x51b05d
lea ecx, [ebp - 0x58]
call fcn.0043d1b0
push eax
lea ecx, [ebp - 0x70]
call fcn.00446a20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
push ecx
call fcn.0045cb90
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0043c550
lea ecx, [ebp - 0x28]
call fcn.00446a90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac4]
call fcn.00545730
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1ac0]
push eax
lea ecx, [ebp - 0x1ac4]
call fcn.00545df0
lea ecx, [ebp - 0x187a]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00446a20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0043d1b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51b1b8
lea ecx, [ebp - 0x40]
call fcn.0044d720
movzx edx, al
test edx, edx
jne 0x51b1b8
mov eax, dword [ebp - 0x1ac8]
mov dword [ebp - 0x1acc], eax
mov dword [ebp - 0x1ae8], 0x51b340
mov dword [ebp - 0x1ae4], 0
mov ecx, dword [ebp - 0x1ae8]
mov dword [ebp - 0x1af0], ecx
mov edx, dword [ebp - 0x1ae4]
mov dword [ebp - 0x1aec], edx
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x1af4], esp
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x1af8], esp
push 0x68672a
lea ecx, [ebp - 0x1acc]
push ecx
lea edx, [ebp - 0x1af0]
push edx
push eax
call fcn.0051bad0
add esp, 0x10
mov ecx, esi
call fcn.0051b700
mov dword [ebp - 0x1ad0], eax
mov eax, dword [ebp - 0x1ad0]
mov dword [ebp - 0x1afc], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1ac0]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00528350
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00528b20
mov dword [ebp - 0x1ad4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0043c550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac4]
call fcn.00545750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043c550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043c550
mov eax, dword [ebp - 0x1ad4]
jmp 0x51b2ef
lea ecx, [ebp - 0x28]
call fcn.0043d1b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51b237
push 0
mov eax, dword [ebp - 0x1ac0]
push eax
push 0xfbb
mov ecx, dword [ebp - 0x1ac8]
mov edx, dword [ecx + 0x248]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x1ad8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0043c550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac4]
call fcn.00545750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043c550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043c550
mov eax, dword [ebp - 0x1ad8]
jmp 0x51b2ef
cmp dword [ebp - 0x1ac0], 1
jne 0x51b2a9
push 0
mov eax, dword [ebp - 0x1ac0]
push eax
push 0xfbb
mov ecx, dword [ebp - 0x1ac8]
mov edx, dword [ecx + 0x248]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x1adc], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0043c550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac4]
call fcn.00545750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043c550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043c550
mov eax, dword [ebp - 0x1adc]
jmp 0x51b2ef
mov dword [ebp - 0x1ae0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0043c550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac4]
call fcn.00545750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043c550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043c550
mov eax, dword [ebp - 0x1ae0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bcdb6
mov esp, ebp
pop ebp
ret 0x10