Function at 0x40e220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c818
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4be5b4]
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
push 0
push str.Qt5QWindowIcon
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40e274
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e274
call fcn.004559f0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x40]
push eax
call fcn.0040af00
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40e604
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 1
jge 0x40e2cc
push 0x400
lea ecx, [ebp - 0x38]
call fcn.00410500
mov esi, dword [ebp - 0x38]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str...LDSGamePlayerPK_vbox_vbox_img.exe
push edi
push esi
call ebx
push dword [esi - 8]
push esi
call fcn.0044043a
add esp, 8
test eax, eax
js 0x40e5fa
cmp eax, dword [esi - 8]
jg 0x40e5fa
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40e60e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x44], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
jge 0x40e346
push 0x400
lea ecx, [ebp - 0x44]
call fcn.00410500
mov edi, dword [ebp - 0x44]
push str...LDSGamePlayerPK_vms
push esi
push edi
call ebx
push dword [edi - 8]
push edi
call fcn.0044043a
add esp, 8
test eax, eax
js 0x40e5fa
cmp eax, dword [edi - 8]
jg 0x40e5fa
xor ecx, ecx
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x40e51c
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40e618
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov ebx, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], ebx
nop dword [eax]
push ebx
push edi
lea eax, [ebp - 0x30]
push str._s_vbox__d_android_system_disk.vdi
push eax
call fcn.00409e30
mov esi, dword [ebp - 0x30]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e4f1
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40e604
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push str.__s__vdiversion___filename___s_
push eax
call fcn.00409e30
push dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
call fcn.00416300
add esp, 0x18
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
mov eax, dword [esi - 0xc]
test eax, eax
je 0x40e4b3
js 0x40e5fa
movsx eax, byte [esi]
push eax
call fcn.004408c1
add esp, 4
test eax, eax
je 0x40e4b3
cmp dword [esi - 4], 1
jle 0x40e450
push dword [esi - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00409d20
mov esi, dword [ebp - 0x3c]
push esi
lea ecx, [ebp - 0x28]
call fcn.004041a0
mov byte [ebp - 4], 6
call fcn.00434795
cmp dword [ebp - 0x14], 0x10
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x50], eax
cmovae ebx, dword [ebp - 0x28]
mov dword [eax], 0
lea eax, [ebp - 0x4c]
push 0x10
push eax
push ebx
call fcn.00435b86
add esp, 0xc
mov ecx, eax
cmp ebx, dword [ebp - 0x4c]
je 0x40e62c
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0x22
je 0x40e622
movzx ebx, cl
lea ecx, [ebp - 0x28]
call fcn.004044b0
cmp ebx, 0x75
jb 0x40e597
mov ebx, dword [ebp - 0x48]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e4cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e4ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
inc ebx
mov dword [ebp - 0x48], ebx
cmp ebx, 8
jle 0x40e3b0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e51c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x29], 0
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e53b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e559
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e578
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x29]
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.0042c75e
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e5b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x29], 1
jmp 0x40e520
push 0x80070057
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push str.stoul_argument_out_of_range
call fcn.00428ecc
push str.invalid_stoul_argument
call fcn.00428e8c
int3