Function at 0x4217fe
Capabilities:
Check if file exists

Disassembly:
push 0xe4
mov eax, 0x5d8273
call fcn.00447fd9
mov ebx, ecx
mov dword [ebp - 0xe0], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
and dword [ebp - 4], 0
lea edi, [ebx + 0x4c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0xdc], edi
cmp edi, eax
je 0x42183e
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004020b0
add ebx, 0x64
mov dword [ebp - 0xe8], ebx
cmp ebx, edi
je 0x421857
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.004020b0
lea eax, [ebp - 0x28]
push str.49060265046756381259294368451414
push eax
call fcn.004870ce
mov esi, eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push str.61665632041741661617084214553418
push eax
call fcn.004870ce
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.00488bd9
add esp, 0x1c
lea ecx, [ebp - 0x88]
xor ebx, ebx
push ebx
push 1
call fcn.00401de0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401de0
call fcn.00486016
test al, al
je 0x4218d2
push edx
push esp
pop esp
push edx
push eax
push eax
push ebx
push edi
push ecx
push ecx
pop esp
pop edx
pop ebx
push ebx
pop ecx
pop eax
pop eax
pop eax
push ebx
pop ebx
pop esi
push esi
push edx
pop ebp
push esi
pop ebx
pop ebx
pop esp
pop edx
pop edx
pop eax
push ebp
call fcn.004864ab
test al, al
je 0x4218fd
pop esi
push esp
pop ebx
push edx
push eax
pop edi
pop ecx
push ecx
push esi
push ecx
pop ebp
push esi
push ebx
push ecx
push ecx
pop esi
pop esp
pop edi
pop edx
push edi
push edx
pop esp
pop eax
push edx
pop esi
pop ecx
push ebp
pop ebx
mov edi, dword [ebp - 0xdc]
push 7
pop esi
xor ebx, ebx
mov dword [ebp - 0x8c], esi
push ebx
xor eax, eax
mov dword [ebp - 0x90], ebx
push 0x64a7dc
lea ecx, [ebp - 0xa0]
mov word [ebp - 0xa0], ax
call fcn.00401ea0
push ebx
xor eax, eax
mov byte [ebp - 4], 3
push 0x64a7dc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], ax
call fcn.00401ea0
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x421954
mov eax, dword [edi]
jmp 0x421956
mov eax, edi
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00487411
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0xd0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048730a
add esp, 0x10
lea ecx, [ebp - 0xd0]
push eax
call fcn.00403900
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00489430
push ebx
call fcn.004b0b15
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0xec], ebx
call fcn.0048612a
test al, al
je 0x421a07
push esi
push esp
push edx
push edi
push ecx
push edx
push edx
pop esp
push ebp
push esp
pop ebp
pop edi
pop ebx
pop esi
pop edx
push edi
push esi
mov edi, dword [ebp - 0xdc]
call fcn.004860a0
test al, al
je 0x421a26
pop edx
push ecx
pop ebp
pop edx
pop ecx
push edi
pop ecx
push ebx
pop esi
push edx
pop eax
push eax
pop eax
pop esp
push ebp
push edx
pop ebx
push esp
push edi
push eax
push edi
push esp
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00403980
push dword [ebp + 8]
mov ebx, dword [ebp - 0xe0]
mov ecx, ebx
call fcn.00422241
test al, al
je 0x421bfe
xor esi, esi
lea eax, [ebp - 0xa0]
inc esi
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xec], esi
cmovae eax, dword [ebp - 0xa0]
push eax
call fcn.004b0a42
add eax, dword [ebx]
pop ecx
cmp eax, dword [ebp - 0xe4]
jl 0x421aab
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x421bd8
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004020b0
jmp 0x421bd8
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00489430
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x421ac6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048687f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403900
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00401de0
push 0
push esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422a84
cmp dword [ebp - 0x48], 0
jne 0x421b5c
lea esi, [ebx + 0x64]
mov ecx, edi
push esi
call fcn.00422ad9
test eax, eax
je 0x421b5c
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00489430
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x421b28
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048687f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403900
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422a84
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00422ad9
test eax, eax
jne 0x421bfe
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x421b8c
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004020b0
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
mov dword [ebp - 0xf0], esp
push eax
call fcn.00403980
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00403980
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
push edi
call fcn.00403980
push dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00422736
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
push eax
inc ebx
push ebx
push ebx
call fcn.004226f8
mov ecx, eax
call fcn.004277f7
mov esi, ebx
jmp 0x421f14
cmp dword [ebp + 0x28], 0
jne 0x421c1b
mov ecx, dword [ebp - 0xd8]
push 0
push 0x64a7dc
call fcn.00401ea0
jmp 0x421f0f
mov edi, dword [ebp - 0xd8]
cmp dword [edi + 0x10], 0
jne 0x421cdb
cmp dword [ebp + 8], 0
je 0x421c7a
add ebx, 0x1c
cmp dword [ebx + 0x14], 8
jb 0x421c3c
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00487862
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00403900
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00401de0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004875b2
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
jmp 0x421cc1
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x421c85
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00487862
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00403900
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00401de0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004875b2
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00403c90
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401de0
call fcn.00486466
test al, al
je 0x421cf4
push esi
pop edx
push ecx
push ecx
pop ebx
push ebp
pop esp
push ebx
push ecx
pop ecx
push edx
pop eax
pop esp
push esi
push eax
push ebx
call fcn.004861b4
test al, al
je 0x421d14
push ebx
pop esp
push edx
pop esi
push esi
pop ebx
pop eax
push eax
push edi
push esi
push ebp
push ebp
pop ebp
push edx
push eax
pop esp
push edx
push ebp
pop esp
pop ecx
push ebx
push edi
pop ebx
call fcn.004860a0
test al, al
je 0x421d42
push esp
push edx
pop esi
pop edx
push ecx
push ecx
push esi
pop ecx
pop edi
pop edi
pop ebp
push edx
pop esp
pop ecx
push ebp
push ebx
push edi
pop esi
push eax
push ecx
pop ebp
pop eax
pop esp
push edi
push esp
push ebx
pop edi
push eax
push ecx
push ebp
pop ebx
mov edi, dword [ebp - 0xd8]
cmp dword [edi + 0x14], 8
jb 0x421d4c
mov eax, dword [edi]
jmp 0x421d4e
mov eax, edi
push eax
call fcn.0047d888
mov esi, dword [ebp - 0xdc]
pop ecx
mov ecx, dword [ebp - 0xe8]
push esi
call fcn.00422ad9
mov ebx, dword [ebp - 0xe0]
mov ecx, ebx
push edi
test eax, eax
je 0x421d8d
push 0
call fcn.00421f74
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x421d9d
push edi
mov ecx, ebx
push 1
call fcn.00421f74
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
jb 0x421da7
mov eax, dword [edi]
jmp 0x421da9
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb al, al
and al, byte [ebp - 0xd1]
lea eax, [ebp - 0x40]
jne 0x421de1
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
inc ebx
push ebx
push eax
push ebx
push ebx
call fcn.004226f8
mov ecx, eax
call fcn.004277f7
xor esi, esi
jmp 0x421f14
cmp dword [ebp - 0xec], 0
jne 0x421dee
push 2
jmp 0x421df0
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004226f8
mov ecx, eax
call fcn.004277f7
cmp dword [ebp - 0x48], 0
jne 0x421ec9
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00489430
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x421e2e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048687f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403900
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422a84
cmp dword [ebp - 0x48], 0
jne 0x421ec9
lea eax, [ebx + 0x64]
mov ecx, esi
push eax
call fcn.00422ad9
test eax, eax
je 0x421ec9
lea eax, [ebx + 0x64]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00489430
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x421e95
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048687f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403900
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422a84
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
push edi
call fcn.00403980
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00403980
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push esi
call fcn.00403980
push dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00422736
xor ebx, ebx
xor esi, esi
inc ebx
push 0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00401de0
push 0
push ebx
lea ecx, [ebp - 0xb8]
call fcn.00401de0
push 0
push ebx
lea ecx, [ebp - 0x40]
call fcn.00422a84
push 0
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00401de0
push 0
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401de0
push 0
push ebx
lea ecx, [ebp - 0xa0]
call fcn.00401de0
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00401de0
mov eax, esi
call fcn.00447f83
ret 0x24