Function at 0x4169e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58518d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x60c044]
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 dword [ebp - 0x28c], ecx
push 2
xor eax, eax
mov dword [ebp - 0x148], 7
push 0x601e6c
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], 0
mov word [ebp - 0x15c], ax
call fcn.00403620
mov dword [ebp - 4], 0
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
push 1
push 0x603a10
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.0041a2a0
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00429b54
add esp, 8
mov esi, eax
lea eax, [ebp - 0xfc]
cmp eax, esi
je 0x416b1b
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x416af4
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040fc70
push esi
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
call fcn.004196a0
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x416b39
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.0040fc70
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov byte [ebp - 4], 3
cmp dword [0x61654c], 0
jne 0x416b8b
push 0x1d4
call fcn.0041b472
add esp, 4
mov dword [ebp - 0x278], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00409040
mov byte [ebp - 4], 3
mov dword [0x61654c], eax
lea eax, [ebp - 0x144]
push eax
call fcn.004097c0
mov byte [ebp - 4], 5
cmp dword [0x61654c], 0
jne 0x416bcb
push 0x1d4
call fcn.0041b472
add esp, 4
mov dword [ebp - 0x278], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00409040
mov byte [ebp - 4], 5
mov dword [0x61654c], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004095a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x284]
cmp dword [ebp - 0x130], 8
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.00416500
mov esi, dword [ebp - 0x284]
mov ebx, 1
mov edi, dword [ebp - 0x280]
cmp esi, edi
je 0x416f9a
nop word [eax + eax]
push ebx
lea eax, [ebp - 0xd8]
push 0x6012c0
push eax
call fcn.004030d0
add esp, 0xc
lea ecx, [ebp - 0x270]
inc ebx
mov dword [ebp - 0x278], ebx
call fcn.00414340
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 8
call fcn.00414470
mov dword [ebp - 0x198], 0x100
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 9
cmp eax, esi
je 0x416c7a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403210
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418be0
add esp, 0xc
push str..wnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040fa60
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x416cfd
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x416cd4
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x1cc], 7
push edi
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
mov word [ebp - 0x1e0], ax
call fcn.00403020
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x416d1b
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403830
xor eax, eax
mov byte [ebp - 4], 9
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x416d5a
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403830
cmp dword [ebp - 0x1cc], 8
lea eax, [ebp - 0x1e0]
cmovae eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416e5d
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418be0
add esp, 0xc
push str..swnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040fa60
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x416e00
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x416dd7
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x1cc], 7
push edi
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
mov word [ebp - 0x1e0], ax
call fcn.00403020
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x416e1e
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403830
xor eax, eax
mov byte [ebp - 4], 9
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x416e5d
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403830
cmp word [ebp - 0xd8], 0
jne 0x416e6b
xor ecx, ecx
jmp 0x416e83
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416e74
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00403620
lea eax, [ebp - 0x270]
push eax
call fcn.00415d70
mov edi, dword [ebp - 0xe0]
lea eax, [ebp - 0x270]
cmp eax, edi
jae 0x416f1b
mov ebx, dword [ebp - 0xe4]
cmp ebx, eax
ja 0x416f1b
mov ecx, eax
mov eax, 0x94f2095
sub ecx, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x274], eax
cmp edi, dword [ebp - 0xdc]
jne 0x416efd
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004182b0
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x274]
imul eax, eax, 0xdc
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x288], edi
add eax, ebx
mov byte [ebp - 4], 0xe
test edi, edi
je 0x416f5d
jmp 0x416f4f
cmp edi, dword [ebp - 0xdc]
jne 0x416f35
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004182b0
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x274], edi
mov byte [ebp - 4], 0xf
test edi, edi
je 0x416f5d
lea eax, [ebp - 0x270]
push eax
mov ecx, edi
call fcn.00418ee0
mov edi, dword [ebp - 0xe0]
add edi, 0xdc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xe0], edi
call fcn.00414680
lea ecx, [ebp - 0x270]
call fcn.00414580
mov edi, dword [ebp - 0x280]
add esi, 0x18
mov ebx, dword [ebp - 0x278]
cmp esi, edi
jne 0x416c20
mov ebx, dword [ebp - 0x28c]
lea eax, [ebp - 0x114]
lea esi, [ebx + 0x54]
cmp esi, eax
je 0x416fb9
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419f20
lea ecx, [esi + 0x18]
lea eax, [ebp - 0xfc]
cmp ecx, eax
je 0x416fd0
push 0xffffffffffffffff
push 0
push eax
call fcn.00419f20
lea eax, [ebp - 0xe4]
push eax
lea ecx, [esi + 0x30]
call fcn.00417dd0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebx + 0xc]
call fcn.00417c10
mov eax, dword [ebp - 0x178]
cmp eax, 8
jb 0x41700c
inc eax
lea ecx, [ebp - 0x18c]
push eax
push dword [ebp - 0x18c]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x17c], 0
cmp eax, 8
jb 0x417047
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403830
mov esi, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], 0
mov word [ebp - 0x144], ax
test esi, esi
je 0x4170a5
push dword [ebp - 0x288]
lea eax, [ebp - 0x284]
push eax
push edi
push esi
call fcn.0040a3e0
mov ecx, dword [ebp - 0x27c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040a0c0
lea ecx, [ebp - 0xe4]
call fcn.00418240
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x4170ce
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040fc70
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
cmp eax, 0x10
jb 0x417107
inc eax
lea ecx, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
call fcn.0040fc70
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
cmp eax, 8
jb 0x417140
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00403830
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 - 0x10]
xor ecx, ebp
call fcn.0041b461
mov esp, ebp
pop ebp
ret