Function at 0x422200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff55c
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x54c728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
push str.Exe_Path
mov bl, 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004042a0
mov dword [ebp - 4], 0
xor eax, eax
mov edx, dword [str.SOFTWAREAlmondTheater]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422294
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004042a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
push 1
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push SysReAllocStringLen
push eax
call fcn.00433870
add esp, 0x14
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42230d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422303
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4226f4
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x42235f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422355
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4226f9
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
push 7
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], eax
push str.Version
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.004042a0
mov byte [ebp - 4], 5
xor eax, eax
mov edx, dword [str.SOFTWAREAlmondTheater]
mov ecx, edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x70], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.004042a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
push 1
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push SysReAllocStringLen
push eax
call fcn.00433870
add esp, 0x14
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x422449
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42243f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4226fe
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x42249e
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422494
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422703
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x8c], 8
mov word [ebp - 0x88], ax
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
mov dword [ebp - 0x74], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42259f
cmp dword [ebp - 0x18], 0
je 0x42259f
lea eax, [ebp - 0xd0]
push eax
call fcn.004313e0
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00431c30
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x422546
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42253c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422708
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0xc0], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xb8]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0xa4], 8
push ecx
cmovae eax, dword [ebp - 0xb8]
push eax
mov dword [ebp - 0xbc], 7
call fcn.00430640
add esp, 8
test eax, eax
jle 0x4225c2
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb8]
call fcn.00402770
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00402770
jmp 0x4226d7
xor bl, bl
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x422608
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4225fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42270d
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x422663
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422659
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422712
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x4226ba
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4226b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422717
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a995c
mov esp, ebp
pop ebp
ret
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
int3