Function at 0x40d310
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551ea3
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5b228c]
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
lea eax, [ebp - 0x58]
push eax
call fcn.0041de10
mov ecx, eax
call fcn.0041dde0
mov dword [ebp - 4], 0
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40d606
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40d610
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0042ea60
test al, al
mov eax, dword [ebp - 0x58]
je 0x40d40f
push dword [0x5b209c]
add eax, 0x3c
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00405500
mov edx, dword [ebp - 0x4c]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d3e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5b209c]
mov eax, dword [ebp - 0x58]
add eax, 0x44
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00405500
mov edx, dword [ebp - 0x50]
jmp 0x40d47c
push dword [0x5b2098]
add eax, 0x3c
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00405500
mov edx, dword [ebp - 0x50]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d453
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x5b2098]
mov eax, dword [ebp - 0x58]
add eax, 0x44
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00405ba0
add esp, 0xc
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00405500
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d497
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
xor ebx, ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d576
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40d576
call fcn.0046f390
mov ecx, eax
push ebx
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d57b
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.004174a0
push 3
push 0x566acc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004174a0
mov byte [ebp - 4], 8
call fcn.0046f390
mov ebx, eax
lea ecx, [ebp - 0xf0]
push 0x548
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404570
mov edi, eax
push str.utils::MoveFile:_CefRes__failed_install_all_pack_
push edi
mov byte [ebp - 4], 9
call fcn.00405960
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.00405d60
lea ecx, [ebp - 0x28]
call fcn.00404f30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404f30
xor ebx, ebx
jmp 0x40d57b
mov ebx, 1
lea eax, [ebp - 0x44]
push eax
call fcn.00456100
mov edx, dword [ebp - 0x44]
or edi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d5a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d5c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x40d5e8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40d5e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40d5e8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, ebx
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.00460f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
int3