Function at 0x419f97
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac0ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a005
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0041a820
mov dword [ebp - 4], 0
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00417370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004095f0
mov ecx, dword [ebp + 0xc]
call fcn.00492060
jmp 0x41a3e3
mov eax, 1
test eax, eax
je 0x41a3db
mov word [ebp - 0x24], 0xffff
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00419c12
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x41a045
jmp 0x41a3db
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x22
je 0x41a064
cmp dword [ebp - 0x60], 0x2d
je 0x41a0b4
cmp dword [ebp - 0x60], 0x2f
je 0x41a0b4
jmp 0x41a0de
mov ecx, dword [ebp + 8]
mov dx, word [ecx]
mov word [ebp - 0x24], dx
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x41a0a8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
mov eax, dword [ebp - 0x24]
and eax, 0xffff
cmp edx, eax
je 0x41a0a8
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
jmp 0x41a07d
mov dword [ebp - 0x28], 1
jmp 0x41a33b
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
mov dword [ebp - 0x28], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00419c90
mov dword [ebp + 8], eax
jmp 0x41a33b
mov dword [ebp - 0x28], 3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.004779f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00419d13
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00419c90
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x18]
sar eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041a8a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 0xc]
call fcn.00492060
test eax, eax
je 0x41a17b
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00417350
mov ecx, eax
call fcn.0047e220
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
mov dword [ebp - 0x30], eax
jmp 0x41a195
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41a278
lea ecx, [ebp - 0x40]
call fcn.00492060
test eax, eax
je 0x41a278
mov dword [ebp - 0x48], 0
jmp 0x41a1c1
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x40]
call fcn.00492060
cmp dword [ebp - 0x48], eax
jae 0x41a278
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x40]
call fcn.00417350
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
sar ecx, 1
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x40]
call fcn.00417350
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041a8a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
call fcn.00492060
test eax, eax
je 0x41a239
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00417350
mov ecx, eax
call fcn.0047e220
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
mov dword [ebp - 0x30], eax
jmp 0x41a253
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41a267
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004095f0
jmp 0x41a278
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004095f0
jmp 0x41a1b8
cmp dword [ebp - 0x30], 0
je 0x41a29e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041a790
jmp 0x41a33b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x41a2c7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041a790
jmp 0x41a33b
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x44]
jb 0x41a2f5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041a790
jmp 0x41a33b
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0041a7f0
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x41a32a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041a790
jmp 0x41a33b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004095f0
jmp 0x41a114
cmp dword [ebp - 0x28], 1
jne 0x41a3b8
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x50]
call fcn.0041a8a0
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
call fcn.00492060
test eax, eax
je 0x41a392
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00417350
mov ecx, eax
call fcn.0047e220
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
jmp 0x41a3a9
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0047e220
push eax
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00419d96
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004095f0
mov edx, dword [ebp - 0x24]
and edx, 0xffff
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp edx, ecx
jne 0x41a3d6
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
jmp 0x41a005
mov ecx, dword [ebp + 0xc]
call fcn.00492060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8