Function at 0x100137bd
Capabilities:
Check if file exists

Disassembly:
push 0x14c
mov eax, 0x10073ee7
call fcn.1003d449
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x10]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.1000df32
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1000d9a0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000e1f6
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x10013857
cmp dword [esi + 0x14], 0x10
jb 0x10013829
mov eax, dword [esi]
jmp 0x1001382b
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.100048e0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000f0a7
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
add al, 1
jne 0x1001388e
push 1
call fcn.10005480
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x1001381f
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10005480
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.100015e0
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.100015e0
mov eax, esi
call fcn.1003d404
ret 8
xor esi, esi
inc esi
push esi
call fcn.10005480
push ebx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10013487
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x100138cd
push ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.100135f5
push eax
lea ecx, [ebp - 0x28]
call fcn.100030b0
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.100015e0
cmp dword [edi + 0x38], 0
lea eax, [ebp - 0x28]
jbe 0x100139d7
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x10013910
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10003150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10013154
test al, al
je 0x10013b43
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10003150
mov ecx, edi
call fcn.10012fb3
test al, al
jne 0x10013979
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10003150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10013154
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x10013979
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10003150
mov ecx, edi
call fcn.10012fb3
test al, al
je 0x10013b43
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x10013992
sub esp, 0x18
mov ecx, esp
jmp 0x10013a08
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x158]
push 0x40
push 0x25
push eax
call fcn.10012998
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x158]
call fcn.100145e9
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.1000a39b
xor ebx, ebx
jmp 0x10013a88
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10003150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10013154
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub esp, 0x18
mov ecx, esp
test eax, eax
jne 0x10013a1e
push ebx
call fcn.10004850
mov ecx, edi
call fcn.1001303a
mov esi, eax
xor ebx, ebx
jmp 0x10013ad7
lea eax, [ebp - 0x28]
push eax
call fcn.10003150
lea eax, [ebp - 0x40]
push eax
call fcn.10012105
mov ecx, dword [ebp - 0x90]
add esp, 0x1c
push eax
call fcn.100030b0
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.100015e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x158]
push 0x40
push 0x25
push eax
call fcn.10012998
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x158]
call fcn.100145e9
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.1000a39b
lea ecx, [esi + 1]
mov dword [edi + 0x94], eax
push ecx
push ebx
push eax
call fcn.100191c0
add esp, 0x10
lea ecx, [ebp - 0x158]
push ebx
push ebx
push ebx
call fcn.1001431a
push ebx
push esi
push dword [edi + 0x94]
lea ecx, [ebp - 0x158]
call fcn.10011419
lea ecx, [ebp - 0x158]
call fcn.1001129a
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.10012e36
test esi, esi
je 0x10013b45
lea ecx, [ebp - 0x89]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.100680b0
lea eax, [edi + 0x70]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [edi + 0x94]
lea ecx, [ebp - 0x89]
call fcn.10015c08
cmp dword [ebp - 0x9c], 0
je 0x10013b49
cmp dword [ebp - 0x98], 0
je 0x10013b49
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call fcn.1001597b
pop ecx
pop ecx
mov esi, eax
jmp 0x10013b4b
xor ebx, ebx
mov esi, ebx
jmp 0x10013b56
mov esi, ebx
lea ecx, [ebp - 0x89]
call fcn.10010c50
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.100015e0
jmp 0x10013860