Function at 0x415c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56417b
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x5c324c]
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]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xd8], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x415dbe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x415dfb
call fcn.00480fd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x415dbe
lea ecx, [ebp - 0xd1]
call fcn.00409e40
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], esi
mov ebx, eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.0041cb60
push 3
push 0x577d18
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0041cb60
mov byte [ebp - 4], 2
call fcn.00480fd0
mov edi, eax
lea ecx, [ebp - 0x188]
push 0x157
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00406db0
mov esi, eax
push ebx
push esi
mov byte [ebp - 4], 3
call fcn.00408110
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x188]
call fcn.0040ac30
lea ecx, [ebp - 0xb8]
call fcn.00407770
lea ecx, [ebp - 0xa0]
call fcn.00407770
or ebx, 0xffffffff
xor esi, esi
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 0x415ddd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.00472b5d
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 - 0xe4], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0040e810
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00465aa0
add esp, 8
cmp dword [ebp - 0xe4], 0
mov byte [ebp - 4], 4
jne 0x415f44
call fcn.00480fd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416711
lea ecx, [ebp - 0xd1]
call fcn.004087d0
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov ebx, eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.0041cb60
push 3
push 0x577d18
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0041cb60
mov byte [ebp - 4], 6
call fcn.00480fd0
mov edi, eax
lea ecx, [ebp - 0x188]
push 0x15f
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00406db0
mov esi, eax
test ebx, ebx
mov byte [ebp - 4], 7
mov eax, 0x577b6c
cmovne eax, ebx
push eax
push esi
call fcn.00405440
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x188]
call fcn.0040ac30
lea ecx, [ebp - 0xb8]
call fcn.00407770
lea ecx, [ebp - 0xa0]
call fcn.00407770
or ebx, 0xffffffff
jmp 0x416711
push str.SetProductInfo
push dword [ebp - 0xf0]
call edi
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xdc]
add eax, 0xfffffff0
push eax
call fcn.0040e810
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xec], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x415f90
push dword [esi - 0xc]
lea ecx, [ebp - 0xec]
call fcn.00414360
mov esi, dword [ebp - 0xec]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005215fc
add esp, 8
test eax, eax
js 0x416749
cmp eax, dword [esi - 8]
jg 0x416749
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [ebp - 0x20]
mov ecx, 0x5cae00
mov dword [ebp - 0x20], 0x37005c
mov dword [ebp - 0x1c], 0x2e007a
mov edx, 9
mov dword [ebp - 0x18], 0x6c0064
sub edi, ecx
mov dword [ebp - 0x14], 0x6c
nop dword [eax + eax]
lea eax, [edx + 0x7ffffff5]
test eax, eax
je 0x41600e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41600e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x415ff0
lea eax, [ecx - 2]
test edx, edx
push 0x5cae00
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004084c0
add esp, 0xc
cmp dword [ebp - 0xe0], 0
mov byte [ebp - 4], 9
je 0x4166d5
lea eax, [ebp - 0x18]
push eax
call fcn.00425500
mov ecx, eax
call fcn.004254d0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.00439210
mov edi, dword [ebp - 0x14]
mov cl, al
mov byte [ebp - 0xd1], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x41609a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41609a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x416094
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xd1]
test cl, cl
je 0x4163b8
call fcn.00480fd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41633b
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], al
call fcn.0041cb60
push 3
push 0x577d18
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
call fcn.0041cb60
mov byte [ebp - 4], 0xc
call fcn.00480fd0
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x14], eax
call fcn.00406a10
push 0xffffffffffffffff
push 0x577b7c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.0041de20
push 0xffffffffffffffff
push 0x577b80
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
call fcn.0041de20
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051ce00
add esp, 0xc
cmp edi, 0xffffffff
je 0x416225
mov ecx, dword [ebp - 0xd8]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416225
mov eax, dword [ebp - 0x90]
lea edx, [ecx + 1]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp eax, edx
jb 0x416753
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
add eax, edx
lea ecx, [ebp - 0xb8]
push eax
call fcn.0041cb60
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push eax
push 0x16c
lea eax, [ebp - 0x88]
push str.__4d___s_
push eax
call fcn.004064b0
add esp, 0x10
lea ecx, [ebp - 0xb8]
call fcn.00407770
jmp 0x41623e
push 0x16c
lea eax, [ebp - 0x88]
push str.__4d_
push eax
call fcn.004064b0
add esp, 0xc
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408110
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408110
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.00408110
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x188]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x188]
call fcn.0040ac30
mov edx, dword [ebp - 0xbc]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x4162e2
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4162d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416758
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x41633b
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416331
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41675d
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov ecx, 0x5cae14
mov dword [ebp - 0x24], 0x69006d
lea edi, [ebp - 0x24]
mov dword [ebp - 0x20], 0x720063
mov dword [ebp - 0x1c], 0x67006f
mov edx, 0xb
mov dword [ebp - 0x18], 0x6d0061
sub edi, ecx
mov dword [ebp - 0x14], 0x65
nop dword [eax]
lea eax, [edx + 0x7ffffff3]
test eax, eax
je 0x41638e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41638e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416370
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5cae14
mov word [eax], cx
call dword [ebp - 0xe0]
push dword [0x5c309c]
jmp 0x4166c3
call fcn.00480fd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416651
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], al
call fcn.0041cb60
push 3
push 0x577d18
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.0041cb60
mov byte [ebp - 4], 0x10
call fcn.00480fd0
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xd8], eax
call fcn.00406a10
push 0xffffffffffffffff
push 0x577b7c
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x11
call fcn.0041de20
push 0xffffffffffffffff
push 0x577b80
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x14], eax
call fcn.0041de20
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051ce00
add esp, 0xc
cmp edi, 0xffffffff
je 0x416538
mov ecx, dword [ebp - 0x14]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416538
mov eax, dword [ebp - 0xc0]
lea edx, [ecx + 1]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp eax, edx
jb 0x416762
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push ecx
add eax, edx
lea ecx, [ebp - 0xb8]
push eax
call fcn.0041cb60
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push eax
push 0x171
lea eax, [ebp - 0x88]
push str.__4d___s_
push eax
call fcn.004064b0
add esp, 0x10
lea ecx, [ebp - 0xb8]
call fcn.00407770
jmp 0x416551
push 0x171
lea eax, [ebp - 0x88]
push str.__4d_
push eax
call fcn.004064b0
add esp, 0xc
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408110
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408110
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.00408110
mov ecx, dword [ebp - 0xd8]
lea edx, [ebp - 0x188]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x188]
call fcn.0040ac30
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x4165f8
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4165ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416767
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x416651
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416647
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41676c
push edx
push ecx
call fcn.00472cbf
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], str.euU7hG
mov ecx, 0x5cae2c
mov dword [ebp - 0x1c], 0x610067
lea edi, [ebp - 0x20]
mov dword [ebp - 0x18], 0x65006d
mov word [ebp - 0x14], ax
mov edx, 8
sub edi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffff6]
test eax, eax
je 0x41669e
movzx eax, word [ecx + edi]
test ax, ax
je 0x41669e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416680
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5cae2c
mov word [eax], cx
call dword [ebp - 0xe0]
push dword [0x5c305c]
push dword [ebp - 0xdc]
call dword [ebp - 0xe4]
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xe8]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4166f6
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 0x416711
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xdc]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416732
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0xd8]
jmp 0x415dbe
push 0x80070057
call fcn.0040e300
call fcn.0041c610
call fcn.005213e9
call fcn.005213e9
call fcn.0041c610
call fcn.005213e9
call fcn.005213e9
int3