Function at 0x10004480
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x10011e21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [0x10016180]
push ebp
mov dword [esp + 0xac], eax
lea eax, [esp + 0x90]
push esi
push eax
call fcn.10003f80
add esp, 4
mov eax, dword [esp + 0xac]
xor esi, esi
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x98]
mov dword [esp + 0xbc], esi
jae 0x100044e0
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov eax, dword [esp + 0xac]
jne 0x1000450d
cmp eax, ebp
jb 0x10004506
mov ecx, dword [esp + 0x98]
push ecx
call fcn.10008c5d
add esp, 4
xor al, al
jmp 0x1000476e
cmp eax, ebp
mov eax, dword [esp + 0x98]
jae 0x1000451f
lea eax, [esp + 0x98]
push ebx
push 0x64
push eax
lea edx, [esp + 0x84]
push edx
call fcn.10002aa0
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0xc0], 1
call fcn.10005d80
mov eax, dword [esp + 0x94]
mov bl, 2
cmp eax, ebp
mov eax, dword [esp + 0x80]
mov byte [esp + 0xc0], bl
jae 0x10004566
lea eax, [esp + 0x80]
push edi
push esi
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.10007b80
lea ecx, [esp + 0x2c]
call fcn.10005310
mov edi, eax
cmp edi, esi
jne 0x1000460f
mov eax, dword [esp + 0x68]
cmp eax, esi
mov byte [esp + 0xc4], 1
mov dword [esp + 0x2c], 0x100131d4
je 0x100045a7
push eax
call fcn.1000944d
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call fcn.10005a10
cmp dword [esp + 0x98], ebp
jb 0x100045d5
mov eax, dword [esp + 0x84]
push eax
call fcn.10008c5d
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], esi
mov byte [esp + 0x84], 0
jb 0x10004608
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.10008c5d
add esp, 4
xor al, al
jmp 0x1000476c
lea edx, [esp + 0x10]
push 0x646
push edx
call fcn.10001cf0
add esp, 8
cmp dword [eax + 0x18], ebp
mov byte [esp + 0xc4], 3
jb 0x10004633
mov eax, dword [eax + 4]
jmp 0x10004636
add eax, 4
push eax
mov ecx, edi
call fcn.100065b0
mov esi, eax
cmp dword [esp + 0x28], ebp
mov byte [esp + 0xc4], bl
jb 0x1000465a
mov eax, dword [esp + 0x14]
push eax
call fcn.10008c5d
add esp, 4
test esi, esi
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
je 0x10004692
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004680
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.100015a0
lea ecx, [esp + 0x10]
push 0x649
push ecx
call fcn.10001cf0
add esp, 8
cmp dword [eax + 0x18], ebp
mov byte [esp + 0xc4], 4
jb 0x100046b6
mov eax, dword [eax + 4]
jmp 0x100046b9
add eax, 4
push eax
mov ecx, edi
call fcn.100065b0
mov esi, eax
cmp dword [esp + 0x28], ebp
jb 0x100046d6
mov edx, dword [esp + 0x14]
push edx
call fcn.10008c5d
add esp, 4
xor edi, edi
cmp esi, edi
je 0x100046e8
push esi
call fcn.10009565
add esp, 4
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x68]
cmp eax, edi
mov byte [esp + 0xc4], 1
mov dword [esp + 0x2c], 0x100131d4
je 0x10004709
push eax
call fcn.1000944d
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
call fcn.10005a10
cmp dword [esp + 0x98], ebp
jb 0x10004737
mov eax, dword [esp + 0x84]
push eax
call fcn.10008c5d
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], edi
mov byte [esp + 0x84], 0
jb 0x1000476a
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.10008c5d
add esp, 4
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0xb4]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xac]
pop ebp
call fcn.10009483
add esp, 0xb8
ret