Function at 0x4179a4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516e24
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [section..data]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], ecx
cmp dword [ecx + 0x10], ebx
jne 0x417a05
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
jmp 0x417bfe
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 4], ebx
call fcn.00417c90
add esp, 4
push 7
xor eax, eax
push str.default
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040392d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.0040728a
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x417a74
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
mov edi, dword [ebp - 0xac]
cmp edi, dword [ebp - 0xa8]
je 0x417bb9
lea eax, [ebp - 0x64]
push eax
call fcn.0041896c
push 0x520f74
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 2
call fcn.00405b23
push edi
push eax
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
call fcn.0040c156
push 0x520f74
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.00405b23
mov ecx, dword [ebp - 0xb8]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 5
call fcn.0040c156
add esp, 0x34
cmp dword [ebp - 0x34], esi
jb 0x417af0
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x6c], esi
jb 0x417b11
mov edx, dword [ebp - 0x80]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x88], esi
jb 0x417b38
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x50], esi
jb 0x417b66
mov eax, dword [ebp - 0x64]
push eax
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x18], esi
jae 0x417b81
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417c1a
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x417ba4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0xa8]
jne 0x417a86
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
cmp edi, ebx
je 0x417bfc
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0xa0]
push eax
push ecx
push edi
call fcn.00407612
mov edx, dword [ebp - 0xac]
push edx
call fcn.00404f7d
add esp, 0x14
mov eax, esi
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.0040330b
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xb0]
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00403fa0
cmp dword [ebp - 0x18], esi
jb 0x417c4b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
mov esi, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp esi, ebx
je 0x417c89
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa0]
push edx
push eax
push esi
call fcn.00407612
push esi
call fcn.00404f7d
add esp, 0x14
mov eax, edi
jmp 0x417bfe