Function at 0x1040073
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x10d1109
call fcn.01001f95
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0100ad56
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.0100ad56
mov eax, 0x400
mov byte [ebp - 4], 1
mov ebx, eax
mov byte [esi + 0x6c], 0
mov dword [ebp - 0x18], edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0101d69e
mov edi, eax
test edi, edi
je 0x1057467
push dword [ebp + 8]
lea ecx, [ebp - 0xd]
call fcn.0102f8c7
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp byte [ebp - 0xd], 0
mov edi, eax
jne 0x1057445
cmp edi, ebx
ja 0x1057451
test edi, edi
je 0x1057494
push edi
lea ecx, [ebp - 0x2c]
call fcn.0101d6f2
cmp dword [ebp - 0x14], 0
jl 0x10401da
push dword [ebp - 0x28]
call fcn.0103f166
test al, al
je 0x10401da
push dword [ebp - 0x28]
mov ecx, esi
call fcn.0103f058
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x10574d9
call fcn.01040209
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1040134
sub eax, edx
sar eax, 1
mov ebx, eax
call fcn.0103f0ba
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x104014c
sub eax, ecx
mov ecx, dword [esi + 0x60]
sar eax, 1
lea edi, [ecx + 2]
cmp ebx, eax
jbe 0x10401fd
add edi, ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.0101d69e
mov ebx, eax
test ebx, ebx
je 0x105750d
mov eax, dword [esi + 0x5c]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1057545
cmp eax, edi
ja 0x10401d0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x10401a7
dec eax
dec eax
xor ecx, ecx
mov word [eax], cx
mov byte [esi + 0x6f], 0
mov byte [esi + 0x6d], 0
mov byte [esi + 0x6e], 0
call fcn.01040209
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push eax
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jne 0x10575c4
mov byte [esi + 0x6d], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.0101d6f2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0100a77d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0100a77d
mov eax, dword [ebp - 0x14]
call fcn.01001fcf
ret 4
add edi, eax
jmp 0x104016a
push 0
call fcn.0102f8ea
jmp 0x10400e4
push 0
lea ecx, [ebp - 0x2c]
mov ebx, edi
call fcn.0101d6f2
and dword [ebp - 0x18], 0
push edi
jmp 0x10400ac
mov dword [ebp - 0x14], 0x8007000e
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10401da
cmp byte [eax + 0x19], 2
jb 0x10401da
push 0x106b628
push 0x1f
jmp 0x1057535
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10574a8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10574d2
cmp byte [eax + 0x19], 2
jb 0x10574d2
push dword [ebp - 0x14]
push 0x106b628
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010a4e26
push 0
jmp 0x10400f5
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10401da
cmp byte [eax + 0x19], 2
jb 0x10401da
push dword [ebp - 0x14]
push 0x106b628
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010a4e26
jmp 0x10401da
mov dword [ebp - 0x14], 0x8007000e
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10401da
cmp byte [eax + 0x19], 2
jb 0x10401da
push 0x106b628
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
jmp 0x10401da
call fcn.0102f90c
test al, al
je 0x105757c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x105757c
push dword [esi + 0x5c]
push edi
push ebx
call fcn.0100a593
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1057568
sub eax, ecx
sar eax, 1
jne 0x1040191
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1057590
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10401d0
cmp byte [eax + 0x19], 2
jb 0x10401d0
push 0x106b628
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
jmp 0x10401d0
call fcn.0103f0ba
push eax
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jne 0x10575dc
mov byte [esi + 0x6e], 1
jmp 0x10401d0
mov byte [esi + 0x6f], 1
jmp 0x10401d0