Function at 0x412160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553bce
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5b327c]
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 0x412295
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x4122d4
call fcn.00470ad0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412295
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.00418e10
push 3
push 0x568dcc
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.00418e10
mov byte [ebp - 4], 2
call fcn.00470ad0
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.004058d0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00407160
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 0x4122b6
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.004626cb
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.0040ad40
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00457250
add esp, 8
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 4
jne 0x412449
call fcn.00470ad0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412415
lea ecx, [ebp - 0xbd]
call fcn.00406680
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov ebx, eax
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.00418e10
push 3
push 0x568dcc
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.00418e10
mov byte [ebp - 4], 6
call fcn.00470ad0
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
test ebx, ebx
mov byte [ebp - 4], 7
mov eax, 0x568a98
cmovne eax, ebx
push eax
push esi
call fcn.00403250
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00407160
lea ecx, [ebp - 0xa4]
call fcn.00404f30
lea ecx, [ebp - 0x8c]
call fcn.00404f30
or ebx, 0xffffffff
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 0x412436
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 0x412297
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.0040ad40
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x412497
push dword [esi - 0xc]
lea ecx, [ebp - 0xdc]
call fcn.00410870
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00510f6c
add esp, 8
test eax, eax
js 0x412b33
cmp eax, dword [esi - 8]
jg 0x412b33
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.00405c80
add esp, 0xc
mov byte [ebp - 4], 9
test edi, edi
je 0x412abf
lea eax, [ebp - 0xd8]
push eax
call fcn.0041f790
mov ecx, eax
call fcn.0041f760
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.004303f0
mov edi, dword [ebp - 0xd4]
mov cl, al
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x412544
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x412544
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41253e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xbd]
test cl, cl
je 0x4127fb
call fcn.00470ad0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4127d0
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.00418e10
push 3
push 0x568dcc
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.00418e10
mov byte [ebp - 4], 0xc
call fcn.00470ad0
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd4], eax
call fcn.004041d0
push 0xffffffffffffffff
push 0x568aa8
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0041a0d0
push 0xffffffffffffffff
push 0x568aac
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.0041a0d0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0050c770
add esp, 0xc
cmp edi, 0xffffffff
je 0x4126c0
mov ecx, dword [ebp - 0xd0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4126c0
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 0x412b3d
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.00418e10
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 0x4126d6
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.004058d0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004058d0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.004058d0
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.00407160
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x41277a
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412770
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b42
push edx
push ecx
call fcn.0046282d
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 0x4127d0
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4127c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b47
push edx
push ecx
call fcn.0046282d
add esp, 8
push dword [ebp - 0xcc]
push esi
push 0x568094
call dword [ebp - 0xe0]
push dword [0x5b30b4]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x412ac1
call fcn.00470ad0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412a97
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.00418e10
push 3
push 0x568dcc
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.00418e10
mov byte [ebp - 4], 0x10
call fcn.00470ad0
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
call fcn.004041d0
push 0xffffffffffffffff
push 0x568aa8
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
call fcn.0041a0d0
push 0xffffffffffffffff
push 0x568aac
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
call fcn.0041a0d0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0050c770
add esp, 0xc
cmp edi, 0xffffffff
je 0x412975
mov ecx, dword [ebp - 0xd4]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412975
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 0x412b4c
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.00418e10
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 0x41298b
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.004058d0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004058d0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.004058d0
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.00407160
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x412a29
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b51
push edx
push ecx
call fcn.0046282d
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 0x412a7c
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b56
push edx
push ecx
call fcn.0046282d
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 [0x5b305c]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x412ac1
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 0x412ae2
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 0x412afd
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 0x412438
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 0x412297
push 0x80070057
call fcn.0040a830
call fcn.004188c0
call fcn.00510d59
call fcn.00510d59
call fcn.004188c0
call fcn.00510d59
call fcn.00510d59
int3