Function at 0x4107b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55254e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
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
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x4108e5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x410924
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4108e5
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
call fcn.004174a0
mov byte [ebp - 4], 2
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x14d
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00404570
mov esi, eax
push str.cefhelper.dll_module_is_nullptr
push esi
mov byte [ebp - 4], 3
call fcn.00405960
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00405d60
lea ecx, [ebp - 0xa4]
call fcn.00404f30
lea ecx, [ebp - 0x8c]
call fcn.00404f30
xor edi, edi
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410906
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartEx
push eax
call edi
push ecx
mov esi, esp
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xd4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004098c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004556f0
add esp, 8
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 4
jne 0x410a7e
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410a4a
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
call fcn.004174a0
mov byte [ebp - 4], 6
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x155
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00404570
mov esi, eax
push str.cefhelper.dll_StartEx_function_is_nullptr
push esi
mov byte [ebp - 4], 7
call fcn.00405960
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00405d60
lea ecx, [ebp - 0xa4]
call fcn.00404f30
lea ecx, [ebp - 0x8c]
call fcn.00404f30
mov edx, dword [ebp - 0xc4]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4108e7
push str.SetProductInfo
push dword [ebp - 0xe4]
call edi
mov edi, eax
mov eax, dword [ebp - 0xc4]
add eax, 0xfffffff0
mov dword [ebp - 0xe0], edi
push eax
call fcn.004098c0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x410acc
push dword [esi - 0xc]
lea ecx, [ebp - 0xdc]
call fcn.0040f560
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0050f8bc
add esp, 8
test eax, eax
js 0x411168
cmp eax, dword [esi - 8]
jg 0x411168
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0xc4]
push str.7z.dll
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00405ba0
add esp, 0xc
mov byte [ebp - 4], 9
test edi, edi
je 0x4110f4
lea eax, [ebp - 0xd8]
push eax
call fcn.0041de10
mov ecx, eax
call fcn.0041dde0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.0042ea60
mov edi, dword [ebp - 0xd4]
mov cl, al
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x410b79
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x410b79
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x410b73
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xbd]
test cl, cl
je 0x410e30
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410e05
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
call fcn.004174a0
mov byte [ebp - 4], 0xc
call fcn.0046f390
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd4], eax
call fcn.004041d0
push 0xffffffffffffffff
push 0x566ab0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.00418760
push 0xffffffffffffffff
push 0x566ab4
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.00418760
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0050b0c0
add esp, 0xc
cmp edi, 0xffffffff
je 0x410cf5
mov ecx, dword [ebp - 0xd0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410cf5
mov eax, dword [ebp - 0x7c]
lea edx, [ecx + 1]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp eax, edx
jb 0x411172
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push ecx
add eax, edx
lea ecx, [ebp - 0xa4]
push eax
call fcn.004174a0
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 0x162
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00403c60
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00404f30
jmp 0x410d0b
push 0x162
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00403c60
add esp, 0xc
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00405960
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00405960
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.00405960
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0x17c]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00405d60
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x410daf
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410da5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411177
push edx
push ecx
call fcn.004610ef
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x410e05
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410dfb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41117c
push edx
push ecx
call fcn.004610ef
add esp, 8
push dword [ebp - 0xcc]
push esi
push 0x5660a0
call dword [ebp - 0xe0]
push dword [0x5b20b4]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x4110f6
call fcn.0046f390
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4110cc
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], al
call fcn.004174a0
push 3
push 0x566dd4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.004174a0
mov byte [ebp - 4], 0x10
call fcn.0046f390
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
call fcn.004041d0
push 0xffffffffffffffff
push 0x566ab0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
call fcn.00418760
push 0xffffffffffffffff
push 0x566ab4
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
call fcn.00418760
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0050b0c0
add esp, 0xc
cmp edi, 0xffffffff
je 0x410faa
mov ecx, dword [ebp - 0xd4]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410faa
mov eax, dword [ebp - 0xac]
lea edx, [ecx + 1]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp eax, edx
jb 0x411181
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push ecx
add eax, edx
lea ecx, [ebp - 0xa4]
push eax
call fcn.004174a0
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 0x166
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00403c60
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00404f30
jmp 0x410fc0
push 0x166
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00403c60
add esp, 0xc
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00405960
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00405960
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.00405960
mov ecx, dword [ebp - 0xd0]
lea edx, [ebp - 0x17c]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00405d60
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x41105e
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411054
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411186
push edx
push ecx
call fcn.004610ef
add esp, 8
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x4110b1
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4110a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41118b
push edx
push ecx
call fcn.004610ef
add esp, 8
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
push dword [ebp - 0xcc]
push esi
push str.wdgame
call dword [ebp - 0xe0]
push dword [0x5b205c]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x4110f6
xor edi, edi
mov edx, dword [ebp - 0xcc]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411117
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411132
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410a6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4108e7
push 0x80070057
call fcn.004093b0
call fcn.00416f50
call fcn.0050f6a9
call fcn.0050f6a9
call fcn.00416f50
call fcn.0050f6a9
call fcn.0050f6a9
int3