Function at 0x415c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x5c524c]
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 0x415d8e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x415dcb
call fcn.00482a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x415d8e
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.0041cb30
push 3
push 0x579d18
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.0041cb30
mov byte [ebp - 4], 2
call fcn.00482a90
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 0x415dad
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.0047467d
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.004675d0
add esp, 8
cmp dword [ebp - 0xe4], 0
mov byte [ebp - 4], 4
jne 0x415f14
call fcn.00482a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4166e1
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.0041cb30
push 3
push 0x579d18
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.0041cb30
mov byte [ebp - 4], 6
call fcn.00482a90
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, 0x579b6c
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 0x4166e1
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 0x415f60
push dword [esi - 0xc]
lea ecx, [ebp - 0xec]
call fcn.00414340
mov esi, dword [ebp - 0xec]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0052308c
add esp, 8
test eax, eax
js 0x416719
cmp eax, dword [esi - 8]
jg 0x416719
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [ebp - 0x20]
mov ecx, 0x5cce00
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 0x415fde
movzx eax, word [edi + ecx]
test ax, ax
je 0x415fde
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x415fc0
lea eax, [ecx - 2]
test edx, edx
push 0x5cce00
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 0x4166a5
lea eax, [ebp - 0x18]
push eax
call fcn.004254d0
mov ecx, eax
call fcn.004254a0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.004391e0
mov edi, dword [ebp - 0x14]
mov cl, al
mov byte [ebp - 0xd1], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x41606a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41606a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x416064
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xd1]
test cl, cl
je 0x416388
call fcn.00482a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41630b
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.0041cb30
push 3
push 0x579d18
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.0041cb30
mov byte [ebp - 4], 0xc
call fcn.00482a90
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x14], eax
call fcn.00406a10
push 0xffffffffffffffff
push 0x579b7c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.0041ddf0
push 0xffffffffffffffff
push 0x579b80
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
call fcn.0041ddf0
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051e890
add esp, 0xc
cmp edi, 0xffffffff
je 0x4161f5
mov ecx, dword [ebp - 0xd8]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4161f5
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 0x416723
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.0041cb30
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 0x41620e
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 0x4162b2
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4162a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416728
push edx
push ecx
call fcn.004747df
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 0x41630b
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416301
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41672d
push edx
push ecx
call fcn.004747df
add esp, 8
mov ecx, 0x5cce14
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 0x41635e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41635e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416340
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5cce14
mov word [eax], cx
call dword [ebp - 0xe0]
push dword [0x5c509c]
jmp 0x416693
call fcn.00482a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416621
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.0041cb30
push 3
push 0x579d18
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.0041cb30
mov byte [ebp - 4], 0x10
call fcn.00482a90
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xd8], eax
call fcn.00406a10
push 0xffffffffffffffff
push 0x579b7c
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x11
call fcn.0041ddf0
push 0xffffffffffffffff
push 0x579b80
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x14], eax
call fcn.0041ddf0
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051e890
add esp, 0xc
cmp edi, 0xffffffff
je 0x416508
mov ecx, dword [ebp - 0x14]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416508
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 0x416732
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.0041cb30
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 0x416521
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 0x4165c8
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4165be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416737
push edx
push ecx
call fcn.004747df
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 0x416621
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416617
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41673c
push edx
push ecx
call fcn.004747df
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0x640077
mov ecx, 0x5cce2c
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 0x41666e
movzx eax, word [ecx + edi]
test ax, ax
je 0x41666e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416650
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5cce2c
mov word [eax], cx
call dword [ebp - 0xe0]
push dword [0x5c505c]
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 0x4166c6
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 0x4166e1
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 0x416702
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 0x415d8e
push 0x80070057
call fcn.0040e300
call fcn.0041c5e0
call fcn.00522e79
call fcn.00522e79
call fcn.0041c5e0
call fcn.00522e79
call fcn.00522e79
int3