Function at 0x416c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d8be
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5852e0]
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 0x416d55
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x416d94
call fcn.0044ac30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416d55
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.0040c440
push 3
push 0x53f67c
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.0040c440
mov byte [ebp - 4], 2
call fcn.0044ac30
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x143
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040dcb0
mov esi, eax
push str.cefhelper.dll_module_is_nullptr
push esi
mov byte [ebp - 4], 3
call fcn.00409410
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00409540
lea ecx, [ebp - 0xa4]
call fcn.00408b20
lea ecx, [ebp - 0x8c]
call fcn.00408b20
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 0x416d76
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.00448d48
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.00403400
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00436200
add esp, 8
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 4
jne 0x416eee
call fcn.0044ac30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416eba
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.0040c440
push 3
push 0x53f67c
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.0040c440
mov byte [ebp - 4], 6
call fcn.0044ac30
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x14b
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040dcb0
mov esi, eax
push str.cefhelper.dll_StartEx_function_is_nullptr
push esi
mov byte [ebp - 4], 7
call fcn.00409410
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00409540
lea ecx, [ebp - 0xa4]
call fcn.00408b20
lea ecx, [ebp - 0x8c]
call fcn.00408b20
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 0x416edb
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 0x416d57
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.00403400
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x416f3c
push dword [esi - 0xc]
lea ecx, [ebp - 0xdc]
call fcn.00403470
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00505b17
add esp, 8
test eax, eax
js 0x4175d8
cmp eax, dword [esi - 8]
jg 0x4175d8
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.0040e550
add esp, 0xc
mov byte [ebp - 4], 9
test edi, edi
je 0x417564
lea eax, [ebp - 0xd8]
push eax
call fcn.004207e0
mov ecx, eax
call fcn.004207b0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.0040b9e0
mov edi, dword [ebp - 0xd4]
mov cl, al
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x416fe9
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x416fe9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x416fe3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xbd]
test cl, cl
je 0x4172a0
call fcn.0044ac30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x417275
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.0040c440
push 3
push 0x53f67c
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.0040c440
mov byte [ebp - 4], 0xc
call fcn.0044ac30
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd4], eax
call fcn.004079c0
push 0xffffffffffffffff
push 0x53f028
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0040ce40
push 0xffffffffffffffff
push 0x53f02c
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.0040ce40
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004fbfe0
add esp, 0xc
cmp edi, 0xffffffff
je 0x417165
mov ecx, dword [ebp - 0xd0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417165
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 0x4175e2
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.0040c440
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 0x158
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.004075a0
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00408b20
jmp 0x41717b
push 0x158
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004075a0
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.00409410
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00409410
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.00409410
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.00409540
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x41721f
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175e7
push edx
push ecx
call fcn.00448aa0
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 0x417275
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41726b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175ec
push edx
push ecx
call fcn.00448aa0
add esp, 8
push dword [ebp - 0xcc]
push esi
push str.microgame
call dword [ebp - 0xe0]
push dword [0x5840e0]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x417566
call fcn.0044ac30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41753c
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.0040c440
push 3
push 0x53f67c
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.0040c440
mov byte [ebp - 4], 0x10
call fcn.0044ac30
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
call fcn.004079c0
push 0xffffffffffffffff
push 0x53f028
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
call fcn.0040ce40
push 0xffffffffffffffff
push 0x53f02c
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
call fcn.0040ce40
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004fbfe0
add esp, 0xc
cmp edi, 0xffffffff
je 0x41741a
mov ecx, dword [ebp - 0xd4]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41741a
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 0x4175f1
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.0040c440
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 0x15c
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.004075a0
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00408b20
jmp 0x417430
push 0x15c
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004075a0
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.00409410
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00409410
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.00409410
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.00409540
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x4174ce
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4174c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175f6
push edx
push ecx
call fcn.00448aa0
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 0x417521
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417517
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175fb
push edx
push ecx
call fcn.00448aa0
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 [0x584090]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x417566
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 0x417587
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 0x4175a2
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 0x416edd
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 0x416d57
push 0x80070057
call fcn.004032a0
call fcn.0040c050
call fcn.004ff559
call fcn.004ff559
call fcn.0040c050
call fcn.004ff559
call fcn.004ff559
int3