Function at 0x4f0270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b967
mov eax, dword fs:[0]
push eax
sub esp, 0x964
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x964], ecx
mov eax, dword [ebp - 0x964]
movzx ecx, byte [eax + 0x108]
test ecx, ecx
jne 0x4f02c0
mov edx, dword [ebp - 0x964]
movzx eax, byte [edx + 0x2c]
test eax, eax
jne 0x4f02c7
xor eax, eax
jmp 0x4f05fa
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x964]
add ecx, 4
call fcn.0043ffd0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x964]
add edx, 0x5c
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f03e9
push 0
push 0x59dd08
push 0x101006
push 0
push 0
push 1
lea ecx, [ebp - 0x4a4]
call fcn.00416ae0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x964]
call fcn.004ed9c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f03c6
mov edx, dword [ebp - 0x964]
movzx eax, byte [edx + 0x109]
test eax, eax
jne 0x4f038c
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x958], esp
lea edx, [ebp - 0x18]
push edx
call fcn.0041d990
mov dword [ebp - 0x968], eax
mov ecx, dword [ebp - 0x964]
call fcn.004ee400
jmp 0x4f03b1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x95c], esp
lea eax, [ebp - 0x18]
push eax
call fcn.0041d990
mov dword [ebp - 0x96c], eax
mov ecx, dword [ebp - 0x964]
call fcn.004ee5c0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x964]
add ecx, 0xb0
call fcn.0041dad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a4]
call fcn.00416b80
jmp 0x4f049f
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x964]
add ecx, 0xc0
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f049f
mov edx, dword [ebp - 0x964]
movzx eax, byte [edx + 0x109]
test eax, eax
jne 0x4f0436
push 0
push 6
push 0x111
mov ecx, dword [ebp - 0x964]
add ecx, 4
call fcn.00416350
jmp 0x4f0443
push 0
mov ecx, dword [ebp - 0x964]
call fcn.004f0a60
mov ecx, dword [ebp - 0x964]
cmp dword [ecx + 0x100], 1
je 0x4f049f
mov edx, dword [ebp - 0x964]
mov dword [edx + 0x100], 1
mov eax, dword [ebp - 0x964]
add eax, 0xc0
push eax
mov ecx, dword [ebp - 0x964]
add ecx, 0xc0
push ecx
lea edx, [ebp - 0x4b4]
push edx
call dword [sym.imp.USER32.dll_UnionRect]
push 1
lea eax, [ebp - 0x4b4]
push eax
mov ecx, dword [ebp - 0x964]
add ecx, 4
call fcn.0046ae20
mov ecx, dword [ebp - 0x964]
movzx edx, byte [ecx + 0x109]
test edx, edx
je 0x4f0566
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x964]
add edx, 0xf0
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f0566
push 0
push 0x59dda8
push 0x101006
push 0
push 0
push 1
lea ecx, [ebp - 0x944]
call fcn.00416ae0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x944]
push eax
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, dword [ebp - 0x964]
call fcn.004ed9c0
mov byte [ebp - 4], 3
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x960], esp
lea edx, [ebp - 0x4b8]
push edx
call fcn.0041d990
mov dword [ebp - 0x970], eax
mov ecx, dword [ebp - 0x964]
call fcn.004ee5c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b8]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x944]
call fcn.00416b80
jmp 0x4f05ee
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x964]
add edx, 0xd0
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f05ee
push 1
mov ecx, dword [ebp - 0x964]
call fcn.004f0a60
mov eax, dword [ebp - 0x964]
cmp dword [eax + 0x104], 1
je 0x4f05ee
mov ecx, dword [ebp - 0x964]
mov dword [ecx + 0x104], 1
mov edx, dword [ebp - 0x964]
add edx, 0xd0
push edx
mov eax, dword [ebp - 0x964]
add eax, 0xd0
push eax
lea ecx, [ebp - 0x954]
push ecx
call dword [sym.imp.USER32.dll_UnionRect]
push 1
lea edx, [ebp - 0x954]
push edx
mov ecx, dword [ebp - 0x964]
add ecx, 4
call fcn.0046ae20
mov eax, dword [ebp - 0x964]
mov byte [eax + 0x2c], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 0x10