Function at 0x415d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56573b
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 0x415e7e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x415ebb
call fcn.00481b60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x415e7e
lea ecx, [ebp - 0xd1]
call fcn.00409f20
push 0x5a
push str.d:jenkins.jenkinsworkspacemg_boxgame_boxmicrogamebox_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.0041ca10
push 3
push 0x579ac8
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.0041ca10
mov byte [ebp - 4], 2
call fcn.00481b60
mov edi, eax
lea ecx, [ebp - 0x188]
push 0x157
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00406ec0
mov esi, eax
push ebx
push esi
mov byte [ebp - 4], 3
call fcn.004081f0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x188]
call fcn.0040ad10
lea ecx, [ebp - 0xb8]
call fcn.004078d0
lea ecx, [ebp - 0xa0]
call fcn.004078d0
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 0x415e9d
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.0047268d
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.0040e8f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xdc]
push eax
call fcn.004656a0
add esp, 8
cmp dword [ebp - 0xe4], 0
mov byte [ebp - 4], 4
jne 0x416004
call fcn.00481b60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4167d1
lea ecx, [ebp - 0xd1]
call fcn.004088b0
push 0x5a
push str.d:jenkins.jenkinsworkspacemg_boxgame_boxmicrogamebox_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.0041ca10
push 3
push 0x579ac8
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.0041ca10
mov byte [ebp - 4], 6
call fcn.00481b60
mov edi, eax
lea ecx, [ebp - 0x188]
push 0x15f
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00406ec0
mov esi, eax
test ebx, ebx
mov byte [ebp - 4], 7
mov eax, 0x579b78
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.0040ad10
lea ecx, [ebp - 0xb8]
call fcn.004078d0
lea ecx, [ebp - 0xa0]
call fcn.004078d0
or ebx, 0xffffffff
jmp 0x4167d1
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.0040e8f0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xec], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 8
jle 0x416050
push dword [esi - 0xc]
lea ecx, [ebp - 0xec]
call fcn.004143f0
mov esi, dword [ebp - 0xec]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00522bcc
add esp, 8
test eax, eax
js 0x416809
cmp eax, dword [esi - 8]
jg 0x416809
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [ebp - 0x20]
mov ecx, 0x5ccef8
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 0x4160ce
movzx eax, word [edi + ecx]
test ax, ax
je 0x4160ce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4160b0
lea eax, [ecx - 2]
test edx, edx
push 0x5ccef8
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004085a0
add esp, 0xc
cmp dword [ebp - 0xe0], 0
mov byte [ebp - 4], 9
je 0x416795
lea eax, [ebp - 0x18]
push eax
call fcn.00425550
mov ecx, eax
call fcn.00425520
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
call fcn.00439130
mov edi, dword [ebp - 0x14]
mov cl, al
mov byte [ebp - 0xd1], cl
mov byte [ebp - 4], 9
test edi, edi
je 0x41615a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41615a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x416154
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov cl, byte [ebp - 0xd1]
test cl, cl
je 0x416478
call fcn.00481b60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4163fb
push 0x5a
push str.d:jenkins.jenkinsworkspacemg_boxgame_boxmicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], al
call fcn.0041ca10
push 3
push 0x579ac8
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.0041ca10
mov byte [ebp - 4], 0xc
call fcn.00481b60
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x14], eax
call fcn.00406b20
push 0xffffffffffffffff
push 0x579b88
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.0041dd70
push 0xffffffffffffffff
push 0x579b8c
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
call fcn.0041dd70
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051e3d0
add esp, 0xc
cmp edi, 0xffffffff
je 0x4162e5
mov ecx, dword [ebp - 0xd8]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4162e5
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 0x416813
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.0041ca10
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.004065c0
add esp, 0x10
lea ecx, [ebp - 0xb8]
call fcn.004078d0
jmp 0x4162fe
push 0x16c
lea eax, [ebp - 0x88]
push str.__4d_
push eax
call fcn.004065c0
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.004081f0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.004081f0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0xe
push str.Unzip_new_kernel
push eax
call fcn.004081f0
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.0040ad10
mov edx, dword [ebp - 0xbc]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x4163a2
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416398
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416818
push edx
push ecx
call fcn.004727ef
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 0x4163fb
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4163f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41681d
push edx
push ecx
call fcn.004727ef
add esp, 8
mov ecx, 0x5ccf0c
mov dword [ebp - 0x24], str._rT_1r
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 0x41644e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41644e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416430
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5ccf0c
mov word [eax], cx
call dword [ebp - 0xe0]
push dword [0x5c509c]
jmp 0x416783
call fcn.00481b60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x416711
push 0x5a
push str.d:jenkins.jenkinsworkspacemg_boxgame_boxmicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], al
call fcn.0041ca10
push 3
push 0x579ac8
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.0041ca10
mov byte [ebp - 4], 0x10
call fcn.00481b60
push 1
push 2
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xd8], eax
call fcn.00406b20
push 0xffffffffffffffff
push 0x579b88
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x11
call fcn.0041dd70
push 0xffffffffffffffff
push 0x579b8c
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x14], eax
call fcn.0041dd70
push 0x64
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0051e3d0
add esp, 0xc
cmp edi, 0xffffffff
je 0x4165f8
mov ecx, dword [ebp - 0x14]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4165f8
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 0x416822
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.0041ca10
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.004065c0
add esp, 0x10
lea ecx, [ebp - 0xb8]
call fcn.004078d0
jmp 0x416611
push 0x171
lea eax, [ebp - 0x88]
push str.__4d_
push eax
call fcn.004065c0
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.004081f0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.004081f0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0x12
push str.Unzip_old_kernel
push eax
call fcn.004081f0
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.0040ad10
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x4166b8
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4166ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416827
push edx
push ecx
call fcn.004727ef
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 0x416711
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416707
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41682c
push edx
push ecx
call fcn.004727ef
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0x640077
mov ecx, 0x5ccf24
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 0x41675e
movzx eax, word [ecx + edi]
test ax, ax
je 0x41675e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x416740
push dword [ebp - 0xe8]
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
push 0x5ccf24
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 0x4167b6
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 0x4167d1
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 0x4167f2
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 0x415e7e
push 0x80070057
call fcn.0040e3e0
call fcn.0041c4c0
call fcn.005229b9
call fcn.005229b9
call fcn.0041c4c0
call fcn.005229b9
call fcn.005229b9
int3