Function at 0x418880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53610e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x59024c]
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 0x4189b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x4189f4
call fcn.00454720
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4189b5
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.0040c7b0
push 3
push 0x5494b8
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.0040c7b0
mov byte [ebp - 4], 2
call fcn.00454720
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x14d
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040e020
mov esi, eax
push str.cefhelper.dll_module_is_nullptr
push esi
mov byte [ebp - 4], 3
call fcn.004095f0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00409720
lea ecx, [ebp - 0xa4]
call fcn.00408ca0
lea ecx, [ebp - 0x8c]
call fcn.00408ca0
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 0x4189d6
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.00448d5d
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.004035b0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0043e1d0
add esp, 8
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 4
jne 0x418b4e
call fcn.00454720
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x418b1a
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.0040c7b0
push 3
push 0x5494b8
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.0040c7b0
mov byte [ebp - 4], 6
call fcn.00454720
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x155
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040e020
mov esi, eax
push str.cefhelper.dll_StartEx_function_is_nullptr
push esi
mov byte [ebp - 4], 7
call fcn.004095f0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.00409720
lea ecx, [ebp - 0xa4]
call fcn.00408ca0
lea ecx, [ebp - 0x8c]
call fcn.00408ca0
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 0x418b3b
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 0x4189b7
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.004035b0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x418b9c
push dword [esi - 0xc]
lea ecx, [ebp - 0xdc]
call fcn.00403620
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.004f8e77
add esp, 8
test eax, eax
js 0x419238
cmp eax, dword [esi - 8]
jg 0x419238
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.0040e8c0
add esp, 0xc
mov byte [ebp - 4], 9
test edi, edi
je 0x4191c4
lea eax, [ebp - 0xd8]
push eax
call fcn.004232c0
mov ecx, eax
call fcn.00423290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.0040bd60
mov edi, dword [ebp - 0xd4]
mov cl, al
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x418c49
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x418c49
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x418c43
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xbd]
test cl, cl
je 0x418f00
call fcn.00454720
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x418ed5
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.0040c7b0
push 3
push 0x5494b8
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.0040c7b0
mov byte [ebp - 4], 0xc
call fcn.00454720
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd4], eax
call fcn.00407ad0
push 0xffffffffffffffff
push 0x548e08
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0040d1b0
push 0xffffffffffffffff
push 0x548e0c
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.0040d1b0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004ee2e0
add esp, 0xc
cmp edi, 0xffffffff
je 0x418dc5
mov ecx, dword [ebp - 0xd0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418dc5
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 0x419242
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.0040c7b0
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.004076b0
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00408ca0
jmp 0x418ddb
push 0x162
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004076b0
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.004095f0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004095f0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.004095f0
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.00409720
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x418e7f
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418e75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419247
push edx
push ecx
call fcn.00448d6e
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 0x418ed5
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418ecb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41924c
push edx
push ecx
call fcn.00448d6e
add esp, 8
push dword [ebp - 0xcc]
push esi
push 0x5479cc
call dword [ebp - 0xe0]
push dword [0x5900e0]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x4191c6
call fcn.00454720
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41919c
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.0040c7b0
push 3
push 0x5494b8
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.0040c7b0
mov byte [ebp - 4], 0x10
call fcn.00454720
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
call fcn.00407ad0
push 0xffffffffffffffff
push 0x548e08
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
call fcn.0040d1b0
push 0xffffffffffffffff
push 0x548e0c
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
call fcn.0040d1b0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004ee2e0
add esp, 0xc
cmp edi, 0xffffffff
je 0x41907a
mov ecx, dword [ebp - 0xd4]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41907a
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 0x419251
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.0040c7b0
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.004076b0
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00408ca0
jmp 0x419090
push 0x166
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004076b0
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.004095f0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004095f0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.004095f0
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.00409720
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x41912e
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419124
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419256
push edx
push ecx
call fcn.00448d6e
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 0x419181
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419177
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41925b
push edx
push ecx
call fcn.00448d6e
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 [0x590088]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x4191c6
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 0x4191e7
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 0x419202
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 0x418b3d
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 0x4189b7
push 0x80070057
call fcn.00403450
call fcn.0040c3c0
call fcn.004f28b9
call fcn.004f28b9
call fcn.0040c3c0
call fcn.004f28b9
call fcn.004f28b9
int3