Function at 0x4135f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55af5e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5ba278]
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 0x413725
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x413764
call fcn.00477e30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413725
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.0041a210
push 3
push 0x56ec58
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.0041a210
mov byte [ebp - 4], 2
call fcn.00477e30
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x14d
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00405490
mov esi, eax
push str.cefhelper.dll_module_is_nullptr
push esi
mov byte [ebp - 4], 3
call fcn.004067f0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.004085e0
lea ecx, [ebp - 0xa4]
call fcn.00405e50
lea ecx, [ebp - 0x8c]
call fcn.00405e50
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 0x413746
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.00469a1d
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.0040c1d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0045d740
add esp, 8
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 4
jne 0x4138d9
call fcn.00477e30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4138a5
lea ecx, [ebp - 0xbd]
call fcn.00407800
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.0041a210
push 3
push 0x56ec58
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.0041a210
mov byte [ebp - 4], 6
call fcn.00477e30
mov edi, eax
lea ecx, [ebp - 0x17c]
push 0x155
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00405490
mov esi, eax
test ebx, ebx
mov byte [ebp - 4], 7
mov eax, 0x56e944
cmovne eax, ebx
push eax
push esi
call fcn.00403b20
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x17c]
call fcn.004085e0
lea ecx, [ebp - 0xa4]
call fcn.00405e50
lea ecx, [ebp - 0x8c]
call fcn.00405e50
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 0x4138c6
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 0x413727
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.0040c1d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x413927
push dword [esi - 0xc]
lea ecx, [ebp - 0xdc]
call fcn.00411d00
mov esi, dword [ebp - 0xdc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005183dc
add esp, 8
test eax, eax
js 0x413fc3
cmp eax, dword [esi - 8]
jg 0x413fc3
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.00406ba0
add esp, 0xc
mov byte [ebp - 4], 9
test edi, edi
je 0x413f4f
lea eax, [ebp - 0xd8]
push eax
call fcn.00421770
mov ecx, eax
call fcn.00421740
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.00433aa0
mov edi, dword [ebp - 0xd4]
mov cl, al
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x4139d4
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4139d4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4139ce
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xbd]
test cl, cl
je 0x413c8b
call fcn.00477e30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413c60
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.0041a210
push 3
push 0x56ec58
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.0041a210
mov byte [ebp - 4], 0xc
call fcn.00477e30
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd4], eax
call fcn.004050f0
push 0xffffffffffffffff
push 0x56e954
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0041b4d0
push 0xffffffffffffffff
push 0x56e958
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.0041b4d0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00513be0
add esp, 0xc
cmp edi, 0xffffffff
je 0x413b50
mov ecx, dword [ebp - 0xd0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b50
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 0x413fcd
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.0041a210
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.00404b90
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00405e50
jmp 0x413b66
push 0x162
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00404b90
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.004067f0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004067f0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.004067f0
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.004085e0
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x413c0a
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413c00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413fd2
push edx
push ecx
call fcn.00469b7f
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 0x413c60
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413c56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413fd7
push edx
push ecx
call fcn.00469b7f
add esp, 8
push dword [ebp - 0xcc]
push esi
push 0x56df24
call dword [ebp - 0xe0]
push dword [0x5ba0b0]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x413f51
call fcn.00477e30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413f27
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.0041a210
push 3
push 0x56ec58
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.0041a210
mov byte [ebp - 4], 0x10
call fcn.00477e30
push 1
push 2
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
call fcn.004050f0
push 0xffffffffffffffff
push 0x56e954
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
call fcn.0041b4d0
push 0xffffffffffffffff
push 0x56e958
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
call fcn.0041b4d0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00513be0
add esp, 0xc
cmp edi, 0xffffffff
je 0x413e05
mov ecx, dword [ebp - 0xd4]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413e05
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 0x413fdc
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.0041a210
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.00404b90
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00405e50
jmp 0x413e1b
push 0x166
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00404b90
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.004067f0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004067f0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.004067f0
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.004085e0
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x413eb9
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413eaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413fe1
push edx
push ecx
call fcn.00469b7f
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 0x413f0c
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413f02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413fe6
push edx
push ecx
call fcn.00469b7f
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 [0x5ba05c]
push dword [ebp - 0xc4]
call dword [ebp - 0xc8]
mov edi, eax
jmp 0x413f51
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 0x413f72
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 0x413f8d
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 0x4138c8
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 0x413727
push 0x80070057
call fcn.0040bcc0
call fcn.00419cc0
call fcn.005181c9
call fcn.005181c9
call fcn.00419cc0
call fcn.005181c9
call fcn.005181c9
int3