Function at 0x466360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 8
jb 0x466387
mov dword [ebp - 0x24], 1
jmp 0x46638e
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4663aa
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4665fd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x4663de
mov dword [ebp - 0x2c], 1
jmp 0x4663e5
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
test edx, edx
je 0x466401
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
movzx eax, word [edx]
test eax, eax
je 0x4665fd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 8
jb 0x466439
mov dword [ebp - 0x34], 1
jmp 0x466440
mov dword [ebp - 0x34], 0
mov cl, byte [ebp - 0x34]
mov byte [ebp - 3], cl
movzx edx, byte [ebp - 3]
test edx, edx
je 0x46645c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4665fd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x14], 8
jb 0x466498
mov dword [ebp - 0x3c], 1
jmp 0x46649f
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 4], al
movzx ecx, byte [ebp - 4]
test ecx, ecx
je 0x4664bb
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0xb4]
push edx
call fcn.00465e00
add esp, 8
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 2
jbe 0x4665f2
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x466514
mov dword [ebp - 0x44], 1
jmp 0x46651b
mov dword [ebp - 0x44], 0
mov cl, byte [ebp - 0x44]
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
test edx, edx
je 0x46653d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], eax
xor ecx, ecx
shl ecx, 0
add ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
movsx eax, byte [edx]
cmp eax, 0x4d
jne 0x4665f2
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x46658a
mov dword [ebp - 0x4c], 1
jmp 0x466591
mov dword [ebp - 0x4c], 0
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 6], cl
movzx edx, byte [ebp - 6]
test edx, edx
je 0x4665b3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x98], eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
movsx eax, byte [edx]
cmp eax, 0x5a
jne 0x4665f2
mov byte [ebp - 7], 1
lea ecx, [ebp - 0xb4]
call fcn.00401a00
mov al, byte [ebp - 7]
jmp 0x4665ff
lea ecx, [ebp - 0xb4]
call fcn.00401a00
xor al, al
mov esp, ebp
pop ebp
ret