Function at 0x417360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x589644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push eax
lea ecx, [edi + 8]
call fcn.00416960
push esi
lea ecx, [edi + 4]
call fcn.00416960
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call esi
lea ecx, [ebp - 0x829]
call fcn.00416d80
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417510
lea eax, [ebp - 0x414]
push eax
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d7bd0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea esi, [ebp - 0x414]
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41744e
movzx eax, word [esi + ecx]
test ax, ax
je 0x41744e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417430
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x829]
call fcn.00416ca0
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4174d0
mov edx, 0x104
lea ecx, [ebp - 0x20c]
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4174ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x4174ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417490
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x829]
call fcn.00416bc0
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x414]
mov edx, 0x104
lea esi, [ebp - 0x20c]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x417503
movzx eax, word [esi + ecx]
test ax, ax
je 0x417503
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4174e5
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call fcn.004181b0
mov ecx, eax
call fcn.00418250
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x4175b6
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
call fcn.004171b0
push 0x104
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 4]
lea edx, [ebp - 0x828]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417597
sub edx, ecx
lea eax, [ebp - 0x828]
sar edx, 1
lea ecx, [edi + 0xc]
push edx
push eax
call fcn.00412460
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
jne 0x417614
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
call fcn.004171b0
push 0x104
lea edx, [ebp - 0x61c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea edx, [ebp - 0x61c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4175f5
sub edx, ecx
lea eax, [ebp - 0x61c]
sar edx, 1
lea ecx, [edi + 0x14]
push edx
push eax
call fcn.00412460
mov ecx, edi
call fcn.00417630
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b85ea
mov esp, ebp
pop ebp
ret 8