Function at 0x49d580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x254], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49d5ac
xor eax, eax
jmp 0x49d8ce
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x254]
add ecx, 4
call fcn.0043ffd0
mov byte [ebp - 5], 0
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x254]
add edx, 0x1064
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49d5f5
mov byte [ebp - 5], 1
jmp 0x49d618
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x254]
add edx, 0x1074
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49d618
mov byte [ebp - 0x11], 1
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x49d62c
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x49d8cc
xor edx, edx
mov word [ebp - 0x230], dx
push 0x208
push 0
lea eax, [ebp - 0x22e]
push eax
call fcn.005533a0
add esp, 0xc
call fcn.0042eb50
movzx ecx, al
test ecx, ecx
jne 0x49d672
call fcn.00417050
test eax, eax
je 0x49d672
lea edx, [ebp - 0x234]
push edx
call fcn.0049d4c0
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], 0
jmp 0x49d6a3
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x238]
jae 0x49d6d2
push 0x104
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
jmp 0x49d6d2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d87d
movzx edx, byte [ebp - 5]
test edx, edx
je 0x49d7c0
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x105c], 0
je 0x49d759
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x105c]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x49d74f
push 1
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x240]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x258], eax
jmp 0x49d759
mov dword [ebp - 0x258], 0
push 0
lea ecx, [ebp - 0x230]
push ecx
call fcn.00434810
add esp, 8
mov edx, dword [ebp - 0x254]
mov dword [edx + 0x105c], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [0x5e25ac]
add ecx, 0x7ea
push ecx
call fcn.00554842
add esp, 8
mov edx, dword [0x5e25ac]
mov byte [edx + 0x7e8], 1
push 1
mov eax, dword [ebp - 0x254]
add eax, 0x1064
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 4
call fcn.0046ae20
jmp 0x49d87d
mov ecx, dword [ebp - 0x254]
cmp dword [ecx + 0x1060], 0
je 0x49d81c
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x1060]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x248], ecx
cmp dword [ebp - 0x248], 0
je 0x49d812
push 1
mov edx, dword [ebp - 0x248]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x248]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x25c], eax
jmp 0x49d81c
mov dword [ebp - 0x25c], 0
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.00434810
add esp, 8
mov ecx, dword [ebp - 0x254]
mov dword [ecx + 0x1060], eax
lea edx, [ebp - 0x230]
push edx
mov eax, dword [0x5e25ac]
add eax, 0xa42
push eax
call fcn.00554842
add esp, 8
push 1
mov ecx, dword [ebp - 0x254]
add ecx, 0x1074
push ecx
mov ecx, dword [ebp - 0x254]
add ecx, 4
call fcn.0046ae20
mov edx, dword [0x5e25ac]
mov byte [edx + 0x7e9], 1
mov eax, dword [ebp - 0x254]
mov byte [eax + 0x1048], 1
push 0
push 1
push 0x1512
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x254]
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 edx, dword [0x5e24ac]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 0x10