Function at 0x4218d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x468620]
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 edi, ecx
push 0xffffffffffffffff
xor ebx, ebx
mov dword [ebp - 0x88], edi
add edi, 0x58
push ebx
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x84], edi
call fcn.004017b0
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00425550
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004253b0
lea edx, [ebp - 0x80]
push 0x45f664
push edx
mov ebx, esi
call fcn.004024e0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004027a0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x42198b
mov eax, dword [ebp - 0x80]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
push edi
lea edi, [ecx + 1]
mov byte [ebp - 4], 3
call fcn.0041c800
mov ebx, dword [ebp - 0x84]
cmp eax, 0xffffffff
je 0x4219ed
mov ecx, dword [ebx + 0x10]
push ebx
mov edx, eax
lea esi, [ebp - 0x80]
call fcn.0041c680
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00402720
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], 8
jb 0x4219e8
mov edx, dword [ebp - 0x80]
push edx
call fcn.0043a5c1
add esp, 4
mov esi, 8
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0x2c]
call fcn.004255d0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x421a02
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x421ab4
cmp dword [ebx + 0x10], 0
je 0x421ab4
cmp dword [ebp - 0x1c], 0
je 0x421ab4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x421a31
lea eax, [ebp - 0x2c]
cmp dword [ebx + 0x14], esi
jb 0x421a38
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0043f368
add esp, 8
test eax, eax
jne 0x421ab4
mov ecx, dword [ebp - 0x88]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c]
push eax
add ecx, 0xa8
call fcn.004017b0
cmp dword [ebp - 0x34], esi
jb 0x421a6f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0043a5c1
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], esi
jb 0x421a93
mov eax, dword [ebp - 0x64]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x18], esi
jb 0x421ab0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a5c1
add esp, 4
mov al, 1
jmp 0x421b08
cmp dword [ebp - 0x34], esi
jb 0x421ac5
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043a5c1
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x421ae9
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x18], esi
jb 0x421b06
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043a5c1
add esp, 4
xor al, al
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.0043a0d5
mov esp, ebp
pop ebp
ret