Function at 0x41035b
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3cc]
sub esp, 0x44c
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x3c8], eax
push ebx
push esi
mov esi, dword [ebp + 0x3d8]
push edi
mov edi, dword [ebp + 0x3d4]
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x6c], edi
test esi, esi
jne 0x4103a4
push 0x44768c
mov ecx, edi
call fcn.0040bfd5
mov eax, edi
jmp 0x4106d4
call fcn.004100d1
cmp dword [ebx + 0x208], 0
jne 0x4103b5
push esi
jmp 0x410396
mov eax, dword [0x44d4f4]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0041019c
mov edi, eax
test edi, edi
je 0x4106b1
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.00410242
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041027c
lea ecx, [ebp - 0x80]
call fcn.0040813c
mov eax, dword [ebp - 0x68]
lea esi, [edi + eax*2]
movzx eax, word [esi]
mov ebx, edi
mov dword [ebp - 0x70], ebx
test ax, ax
je 0x4106b4
cmp ax, 0x5c
je 0x410447
cmp ax, 0x2f
je 0x41043b
mov eax, esi
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x78]
call fcn.00410242
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041027c
lea ecx, [ebp - 0x78]
jmp 0x41058f
cmp ax, 0x5c
je 0x410447
cmp ax, 0x2f
jne 0x410451
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x41043b
cmp word [esi], 0
je 0x4106b4
mov ecx, dword [ebp - 0x50]
and dword [ebp - 0x60], 0
push esi
call fcn.00410202
mov edi, eax
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00410242
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.0042bbb0
push dword [ebp - 0x54]
call fcn.0042e8e1
add esp, 0x10
test eax, eax
je 0x4104c7
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push dword [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4104c7
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410522
mov esi, edi
mov dword [ebp - 0x60], 1
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0041019c
xor ebx, ebx
mov dword [ebp - 0x58], eax
mov edi, esi
cmp dword [ebp - 0x60], ebx
jne 0x410695
movzx eax, word [esi]
test ax, ax
je 0x410568
cmp dword [ebp - 0x58], 0
je 0x4104f7
cmp esi, dword [ebp - 0x58]
jae 0x410568
movzx eax, ax
cmp eax, 0x2c
jg 0x410555
je 0x410568
cmp eax, 9
jl 0x41060d
cmp eax, 0xa
jle 0x410568
cmp eax, 0xd
je 0x410568
cmp eax, 0x20
je 0x4105a1
cmp eax, 0x22
jmp 0x410562
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4104c7
mov eax, edi
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x74]
call fcn.00410242
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041027c
lea ecx, [ebp - 0x74]
call fcn.0040813c
mov esi, edi
jmp 0x41058c
cmp eax, 0x2f
je 0x410568
cmp eax, 0x3a
je 0x410568
cmp eax, 0x5c
jne 0x41060d
mov eax, esi
sub eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x7c]
sar eax, 1
push eax
push dword [ebp - 0x70]
call fcn.00410242
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041027c
lea ecx, [ebp - 0x7c]
call fcn.0040813c
lea ecx, [ebp - 0x54]
call fcn.0040813c
test esi, esi
jne 0x4103c1
jmp 0x4106bd
mov eax, ebx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00410242
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c0], ax
lea eax, [ebp + 0x1c2]
push eax
call fcn.0042bbb0
push dword [ebp - 0x5c]
call fcn.0042e8e1
add esp, 0x10
test eax, eax
je 0x410605
push dword [ebp - 0x5c]
lea eax, [ebp + 0x1c0]
push dword [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x410605
lea eax, [ebp + 0x1c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4106a7
lea ecx, [ebp - 0x5c]
call fcn.0040813c
inc esi
inc esi
inc ebx
inc ebx
cmp esi, dword [ebp - 0x58]
jne 0x4104e4
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.00410242
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c0], ax
lea eax, [ebp + 0x1c2]
push eax
call fcn.0042bbb0
push dword [ebp - 0x64]
call fcn.0042e8e1
add esp, 0x10
test eax, eax
je 0x410683
push dword [ebp - 0x64]
lea eax, [ebp + 0x1c0]
push dword [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x410683
lea eax, [ebp + 0x1c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410683
mov dword [ebp - 0x60], 1
lea ecx, [ebp - 0x64]
call fcn.0040813c
cmp dword [ebp - 0x60], 0
je 0x410568
push str._UserProfile_
lea ecx, [ebp - 0x4c]
call fcn.00409afc
jmp 0x41058c
lea ecx, [ebp - 0x5c]
call fcn.0040813c
jmp 0x410695
push esi
jmp 0x4106b5
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00409afc
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040bfa2
lea ecx, [ebp - 0x4c]
call fcn.0040813c
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x3c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb9b
add ebp, 0x3cc
leave
ret 8