Function at 0x1001d540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b3bd7
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x102258ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea edi, [esi + 4]
push edi
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x290], edi
call fcn.100b668c
add esp, 4
test eax, eax
je 0x1001d598
push eax
call fcn.100b6744
add esp, 4
mov byte [ebp - 0x28c], 1
mov eax, dword [esi + 0x34]
lea ebx, [esi + 0x34]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x1001d7a4
xor eax, eax
mov dword [ebp - 0x18], 0x70005f
mov word [ebp - 0x250], ax
lea ecx, [ebp - 0x250]
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x70
push eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
call fcn.1001e830
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x288]
lea eax, [ebp - 0x238]
push eax
call fcn.1001c880
add esp, 0xc
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.10017de0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100396a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001d653
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x268]
mov esi, eax
call fcn.10017de0
test esi, esi
je 0x1001d6b1
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100396a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001d69d
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x268]
call fcn.10017de0
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x281]
push eax
call fcn.1001d2c0
push eax
push dword [ebp - 0x288]
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 4
push eax
call fcn.1001c880
add esp, 0xc
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.10017de0
cmp dword [ebp - 0x26c], 8
lea esi, [ebp - 0x280]
push dword [ebp - 0x228]
cmovae esi, dword [ebp - 0x280]
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.100396a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001d748
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x250]
call fcn.10017de0
lea edx, [ebp - 0x220]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001d770
sub edx, ecx
lea eax, [ebp - 0x220]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1001e110
lea ecx, [ebp - 0x280]
call fcn.10017de0
lea ecx, [ebp - 0x238]
call fcn.10017de0
push edi
mov dword [ebp - 4], 7
call fcn.100b66b1
add esp, 4
test eax, eax
je 0x1001d7c1
push eax
call fcn.100b6744
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101454ca
mov esp, ebp
pop ebp
ret 4