Function at 0x10001b4c
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x10053060]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x54
mov eax, 0x10043c26
call fcn.1002b7f1
mov eax, dword [ebp + 0x68]
xor ebx, ebx
push ebx
mov dword [ebp + 0x1c], eax
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp + 0x20], ebx
call fcn.10015003
push 3
pop esi
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.100021cc
xor edi, edi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
inc edi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x20], edi
call fcn.100012ba
pop ecx
test al, al
je 0x10001bd4
push str.path:
lea ecx, [ebp + 0x40]
call fcn.100021cc
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x20], esi
call fcn.1000158e
pop ecx
mov byte [ebp + 0x1b], bl
test al, al
jne 0x10001bd8
mov byte [ebp + 0x1b], 1
test byte [ebp + 0x20], 2
je 0x10001bec
and dword [ebp + 0x20], 0xfffffffd
push ebx
push edi
lea ecx, [ebp + 0x40]
call fcn.1000270f
mov dword [ebp - 4], esi
test byte [ebp + 0x20], 1
je 0x10001c03
and dword [ebp + 0x20], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.1000270f
cmp byte [ebp + 0x1b], bl
je 0x10001c3b
push str.bad_request
lea ecx, [ebp - 0x28]
call fcn.100021cc
push ebx
push 0x190
mov byte [ebp - 4], 6
push 2
push dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
call fcn.1000c26d
add esp, 0x10
or dword [ebp + 0x20], 4
lea ecx, [ebp - 0x28]
jmp 0x10001e62
lea eax, [ebp - 0x44]
push eax
mov edx, str.path
call fcn.100152f7
push eax
lea ecx, [ebp + 0x40]
call fcn.10014480
push eax
lea eax, [ebp + 0x24]
push eax
mov byte [ebp - 4], 7
call fcn.1001d47c
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 9
call fcn.1000270f
cmp dword [ebp + 0x38], ebx
jne 0x10001caf
push str.invalid_parameter
lea ecx, [ebp - 0x28]
call fcn.100021cc
push ebx
push 0x190
mov byte [ebp - 4], 0xa
push 2
push dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
call fcn.1000c26d
or dword [ebp + 0x20], 4
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.1000270f
jmp 0x10001e5f
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x60]
call fcn.10001237
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 8
jb 0x10001ccb
mov eax, dword [eax + 4]
jmp 0x10001cce
add eax, 4
push 0x10047930
push eax
lea eax, [ebp]
push eax
call fcn.1000e015
add esp, 0xc
push ebx
push edi
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.10002807
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, edi
jae 0x10001d38
push str.empty_paths
lea ecx, [ebp - 0x28]
call fcn.100021cc
push ebx
push 0x1f4
mov byte [ebp - 4], 0xe
push 2
push dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
call fcn.1000c26d
or dword [ebp + 0x20], 4
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.1000270f
jmp 0x10001e4e
jne 0x10001e2d
push ebx
lea esi, [ebp]
call fcn.1000e9c2
push eax
lea esi, [ebp + 0x40]
call fcn.1000223e
mov byte [ebp - 4], 0xf
cmp dword [ebp + 0x58], 8
mov eax, dword [ebp + 0x44]
jae 0x10001d60
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10001daf
push str.file_not_found
lea ecx, [ebp - 0x28]
call fcn.100021cc
push ebx
push 0x194
mov byte [ebp - 4], 0x10
push 2
push dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
call fcn.1000c26d
add esp, 0x10
lea ecx, [ebp - 0x28]
or dword [ebp + 0x20], 4
push ebx
push edi
call fcn.1000270f
push ebx
push edi
lea esi, [ebp + 0x40]
call fcn.10002807
jmp 0x10001e4e
cmp dword [ebp + 0x58], 8
mov eax, dword [ebp + 0x44]
jae 0x10001dbb
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10001de9
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x2c], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.100022f0
mov ecx, dword [ebp + 0x1c]
call fcn.10001842
add esp, 0x18
or dword [ebp + 0x20], 4
jmp 0x10001da0
cmp dword [ebp + 0x58], 8
mov eax, dword [ebp + 0x44]
jae 0x10001df5
lea eax, [ebp + 0x44]
push eax
push 0x10047974
call fcn.1000bd31
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10001277
push ebx
push 0xc8
mov byte [ebp - 4], 0x11
push edi
push dword [ebp + 0x1c]
mov edx, eax
call fcn.1000c26d
add esp, 0x20
lea ecx, [ebp - 0x60]
jmp 0x10001d95
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x2c], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.100022f0
mov ecx, dword [ebp + 0x1c]
call fcn.10001842
add esp, 0x18
or dword [ebp + 0x20], 4
lea esi, [ebp]
call fcn.1000296b
push dword [ebp]
call fcn.1002adba
pop ecx
lea ecx, [ebp + 0x24]
push ebx
push edi
call fcn.1000270f
lea esi, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.10014292
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.1002a90b
add ebp, 0x60
leave
ret