Function at 0x40b050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c380
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040af00
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40b32b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40b335
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
mov ebx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
jge 0x40b0fd
push 0x400
lea ecx, [ebp - 0x38]
call fcn.00410500
mov edi, dword [ebp - 0x38]
push str...LDSGamePlayerPK_vbox_vbox_img.exe
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
call ebx
push dword [edi - 8]
push edi
call fcn.0044043a
add esp, 8
test eax, eax
js 0x40b349
cmp eax, dword [edi - 8]
jg 0x40b349
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, 1
mov eax, dword [ebp - 0x34]
sub ecx, dword [esi - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 8]
sub eax, 0x400
or eax, ecx
jge 0x40b15c
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00410500
mov esi, dword [ebp - 0x3c]
push str...LDSGamePlayerPK_vms_virgin_android_system_disk.vdi
push dword [ebp - 0x30]
push esi
call ebx
push dword [esi - 8]
push esi
call fcn.0044043a
add esp, 8
test eax, eax
js 0x40b349
cmp eax, dword [esi - 8]
jg 0x40b349
xor ecx, ecx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x40b2ba
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2ba
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40b33f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
push edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push str.__s__vdiversion___filename___s_
push eax
call fcn.00409e30
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00416300
add esp, 0x18
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40b281
js 0x40b349
mov al, byte [eax]
movsx eax, al
push eax
call fcn.004408c1
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x2c]
je 0x40b281
cmp dword [eax - 4], 1
jle 0x40b22c
push dword [eax - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00409d20
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004041a0
push 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00418740
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.004044b0
mov eax, dword [ebp - 0x40]
test ebx, 0xf000
movzx edx, bl
mov ecx, 0x484f28
mov dword [eax], edx
mov eax, 0x484f20
cmove eax, ecx
mov ecx, dword [ebp - 0x44]
push eax
call fcn.00404cd0
mov eax, dword [ebp - 0x2c]
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b29c
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 0x40b2ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b2d5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40b2f0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40b30f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80070057
call fcn.004068b0
int3