Function at 0x49d060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587525
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c4], ecx
mov eax, dword [ebp - 0x4c4]
movzx ecx, byte [eax + 0x10ac]
test ecx, ecx
jne 0x49d0a9
xor eax, eax
jmp 0x49d394
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x4c4]
add ecx, 4
call fcn.0043ffd0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x19], 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x4c4]
add eax, 0x1064
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49d0f1
mov byte [ebp - 0xd], 1
jmp 0x49d113
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x4c4]
add eax, 0x1074
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49d113
mov byte [ebp - 0x19], 1
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x49d127
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x49d392
push 0
push 0x596c80
push 0x101006
push 0
push 0
push 1
lea ecx, [ebp - 0x4ac]
call fcn.00416ae0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x4c4]
call fcn.0049d3b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d325
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x49d259
mov eax, dword [ebp - 0x4c4]
cmp dword [eax + 0x105c], 0
je 0x49d1e4
mov ecx, dword [ebp - 0x4c4]
mov edx, dword [ecx + 0x105c]
mov dword [ebp - 0x4b4], edx
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
je 0x49d1da
push 1
mov ecx, dword [ebp - 0x4b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4b0]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x4c8], eax
jmp 0x49d1e4
mov dword [ebp - 0x4c8], 0
push 0
lea ecx, [ebp - 0x20]
call fcn.0041e1e0
push eax
call fcn.00434810
add esp, 8
mov ecx, dword [ebp - 0x4c4]
mov dword [ecx + 0x105c], eax
lea ecx, [ebp - 0x20]
call fcn.0041e290
push eax
mov edx, dword [0x5e25ac]
add edx, 0x7ea
push edx
call fcn.00554842
add esp, 8
mov eax, dword [0x5e25ac]
mov byte [eax + 0x7e8], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0041e330
push 1
mov ecx, dword [ebp - 0x4c4]
add ecx, 0x1064
push ecx
mov ecx, dword [ebp - 0x4c4]
add ecx, 4
call fcn.0046ae20
jmp 0x49d325
mov edx, dword [ebp - 0x4c4]
cmp dword [edx + 0x1060], 0
je 0x49d2b5
mov eax, dword [ebp - 0x4c4]
mov ecx, dword [eax + 0x1060]
mov dword [ebp - 0x4bc], ecx
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4b8], edx
cmp dword [ebp - 0x4b8], 0
je 0x49d2ab
push 1
mov eax, dword [ebp - 0x4b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4b8]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x4cc], eax
jmp 0x49d2b5
mov dword [ebp - 0x4cc], 0
push 0
lea ecx, [ebp - 0x20]
call fcn.0041e1e0
push eax
call fcn.00434810
add esp, 8
mov ecx, dword [ebp - 0x4c4]
mov dword [ecx + 0x1060], eax
lea ecx, [ebp - 0x20]
call fcn.0041e290
push eax
mov edx, dword [0x5e25ac]
add edx, 0xa42
push edx
call fcn.00554842
add esp, 8
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0041e330
push 1
mov eax, dword [ebp - 0x4c4]
add eax, 0x1074
push eax
mov ecx, dword [ebp - 0x4c4]
add ecx, 4
call fcn.0046ae20
mov ecx, dword [0x5e25ac]
mov byte [ecx + 0x7e9], 1
mov edx, dword [ebp - 0x4c4]
mov byte [edx + 0x1048], 1
push 0
push 1
push 0x1512
lea eax, [ebp - 0x4c0]
push eax
mov ecx, dword [ebp - 0x4c4]
add ecx, 4
call fcn.0042c560
mov ecx, eax
call fcn.00401050
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x7f9
mov ecx, dword [0x5e24ac]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4ac]
call fcn.00416b80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 0x10