Function at 0x1003c5f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010aad8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
add eax, 0x20
mov dword [ebp - 0x80], ecx
xor edx, edx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
call fcn.1000b050
push 1
push 0x1012329c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.10009ff0
lea esi, [ebp - 0x30]
call fcn.1004d060
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1000a320
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
jb 0x1003c685
mov eax, dword [ebp - 0x30]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x3c], ebx
je 0x1003c6a5
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x1003c695
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x1003c6bd
cmp dword [ebp - 0x38], esi
jb 0x1003c6b6
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10065453
add esp, 4
xor al, al
jmp 0x1003c861
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
push ebx
push 1
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.1000ea20
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
add esp, 0x10
mov edi, esi
cmp esi, eax
je 0x1003c807
lea ecx, [ecx]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x68], cx
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
call fcn.1000b050
push 1
push 0x1012329c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.10009ff0
lea esi, [ebp - 0x30]
call fcn.1004d300
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.1000a320
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
jb 0x1003c74d
mov edx, dword [ebp - 0x30]
push edx
call fcn.10065453
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.1000ce90
mov ecx, dword [ebp - 0x80]
call fcn.10004030
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x1003c771
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.10004560
mov eax, dword [ebp - 0x68]
mov esi, 8
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x54], esi
jae 0x1003c797
lea eax, [ebp - 0x68]
push 0x10123358
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10069091
mov eax, dword [ebp - 0x6c]
add esp, 0xc
cmp eax, ebx
je 0x1003c7cf
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x30]
jae 0x1003c7bc
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.100690d8
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.10067deb
add esp, 0xc
cmp dword [ebp - 0x1c], 0x10
jb 0x1003c7e1
mov edx, dword [ebp - 0x30]
push edx
call fcn.10065453
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], esi
jb 0x1003c7f6
mov eax, dword [ebp - 0x68]
push eax
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x78]
add edi, 0x1c
cmp edi, eax
jne 0x1003c6f0
mov esi, dword [ebp - 0x7c]
cmp esi, ebx
je 0x1003c844
mov edi, eax
cmp esi, eax
je 0x1003c83b
cmp dword [esi + 0x14], 8
jb 0x1003c822
mov ecx, dword [esi]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
add esi, 0x1c
cmp esi, edi
jne 0x1003c811
mov esi, dword [ebp - 0x7c]
push esi
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x38], 8
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
jb 0x1003c85f
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10065453
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret 4