Function at 0x5012f1f8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 4], esi
je 0x5012f216
mov dword [eax], 1
cmp dword [ebp + 8], esi
jne 0x5012f223
mov dword [ebp - 0xc], esi
jmp 0x5012f3d6
lea eax, [ebp - 4]
push eax
mov eax, 0x5002a174
push eax
push eax
call fcn.501a5bb0
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x5012f3c6
mov ebx, dword [sym.imp.vsansi.dll_DragQueryFileW]
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
je 0x5012f3c3
mov dword [ebp + 0xc], esi
jle 0x5012f31d
push 0x104
lea eax, [ebp - 0x648]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
lea ecx, [ebp - 0x440]
call fcn.500a785c
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x440]
call fcn.500a6e2f
lea ecx, [ebp - 0x440]
call fcn.50272bbe
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.MSVCR70.dll_wcscpy]
mov esi, 0x50001f20
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
xor esi, esi
push esi
call fcn.500ab288
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov ecx, eax
call fcn.50272bbe
test eax, eax
jl 0x5012f301
push 0x50001f20
lea eax, [ebp - 0x20]
push eax
call fcn.5003f10b
test eax, eax
je 0x5012f301
cmp dword [ebp - 0x10], 3
je 0x5012f3e6
cmp dword [ebp - 0x10], 1
je 0x5012f3e6
lea ecx, [ebp - 0x440]
call fcn.501b7afc
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jl 0x5012f261
xor esi, esi
xor edi, edi
cmp dword [ebp - 8], esi
jle 0x5012f3c3
push 0x104
lea eax, [ebp - 0x648]
push eax
push edi
push dword [ebp + 8]
call ebx
lea ecx, [ebp - 0x440]
call fcn.500a785c
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x440]
call fcn.500a6e2f
lea ecx, [ebp - 0x440]
call fcn.50272bbe
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.MSVCR70.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5012f3ae
test al, 0x10
jne 0x5012f3ae
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push eax
call dword [ecx + 0x20]
push esi
push esi
lea eax, [ebp - 0x854]
push eax
call fcn.50272bbe
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
lea ecx, [ebp - 0x440]
call fcn.501b7afc
inc edi
cmp edi, dword [ebp - 8]
jl 0x5012f328
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x5012f3d6
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x860]
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, 0x380f
push ebx
call fcn.5005698e
shr eax, 0x10
test ax, ax
push ebx
je 0x5012f42b
call fcn.5005698e
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.50260700
mov edi, esp
push ebx
call fcn.5005698e
push eax
push edi
call fcn.5024c7db
jmp 0x5012f430
call fcn.5005698e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push esi
push esi
push esi
push eax
mov esi, 0x80004005
push esi
push ecx
call dword [edx + 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x24]
lea ecx, [ebp - 0x440]
call fcn.501b7afc
xor esi, esi
jmp 0x5012f3c6