Function at 0x422a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46688b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x14], 8
jb 0x422abc
mov dword [ebp - 0x28], 1
jmp 0x422ac3
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x422adf
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x422d79
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x422b13
mov dword [ebp - 0x30], 1
jmp 0x422b1a
mov dword [ebp - 0x30], 0
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0xe], cl
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x422b36
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
movzx eax, word [edx]
test eax, eax
je 0x422d79
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 8
jb 0x422b6e
mov dword [ebp - 0x38], 1
jmp 0x422b75
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x422b91
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422d79
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.0041a470
lea ecx, [ebp - 0xa8]
call fcn.0041e5d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
call fcn.0041a470
lea ecx, [ebp - 0xc0]
call fcn.0041e5d0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 8
jb 0x422c10
mov dword [ebp - 0x40], 1
jmp 0x422c17
mov dword [ebp - 0x40], 0
mov dl, byte [ebp - 0x40]
mov byte [ebp - 0x10], dl
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x422c33
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00426cd0
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0xa8]
call fcn.00412ba0
lea ecx, [ebp - 0xd8]
call fcn.0041e3f0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x422c93
mov dword [ebp - 0x48], 1
jmp 0x422c9a
mov dword [ebp - 0x48], 0
mov cl, byte [ebp - 0x48]
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x422d58
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00422940
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x422cf8
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x8c]
je 0x422cf8
xor ecx, ecx
mov byte [ebp - 0x12], cl
movzx edx, byte [ebp - 0x12]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00407f40
cmp dword [ebp + 0x10], 0
je 0x422d2e
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x90]
je 0x422d2e
xor eax, eax
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00407f40
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.0041e3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.0041e3f0
mov al, byte [ebp - 0x14]
jmp 0x422d7b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.0041e3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.0041e3f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret