Function at 0x40b8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551c30
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5b228c]
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
xor ebx, ebx
mov dword [ebp - 0x98], ebx
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], ebx
push eax
call fcn.0041de10
mov ecx, eax
call fcn.0041dde0
mov byte [ebp - 4], 1
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40c399
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x94], eax
push str._res.7z
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.004093d0
test al, al
jne 0x40b975
push str._res.7z
lea ecx, [ebp - 0x94]
call fcn.00405570
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0xa0]
add eax, 0x44
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00405af0
add esp, 0xc
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00417590
mov edx, dword [ebp - 0xa4]
or edi, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b9fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x94]
mov eax, edi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ba1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bb4d
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40c3a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.004093d0
test al, al
jne 0x40ba9d
test esi, esi
jne 0x40ba7c
xor ecx, ecx
jmp 0x40ba90
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba81
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x8c]
call fcn.004157e0
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
mov byte [ebp - 4], 9
cmovae esi, dword [ebp + 8]
mov dword [ebp - 0x98], 1
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40c3ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x94], eax
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xa
call fcn.004093d0
test al, al
jne 0x40bb13
test esi, esi
jne 0x40baf2
xor ecx, ecx
jmp 0x40bb06
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40baf7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x94]
call fcn.004157e0
push 0
push 0x493e0
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x94]
mov ebx, 3
push eax
mov dword [ebp - 0x98], ebx
call fcn.004fa700
add esp, 0x10
mov byte [ebp - 0x8d], 1
test eax, eax
je 0x40bb54
mov byte [ebp - 0x8d], 0
mov dword [ebp - 4], 9
test bl, 2
je 0x40bb86
mov edx, dword [ebp - 0x94]
and ebx, 0xfffffffd
mov dword [ebp - 0x98], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bb86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 7
test bl, 1
je 0x40bbb8
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffffe
mov dword [ebp - 0x98], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bbb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x8d], 0
je 0x40bd0d
call fcn.0046f390
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40bc80
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], al
call fcn.004174a0
push 3
push 0x566acc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004174a0
mov byte [ebp - 4], 0xd
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x13c]
push 0x3f4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404570
mov esi, eax
push str.DownloadAndUnzipResZip__net::CNetUtils::SyncHttpDownload:_download_res.7z__failed
push esi
mov byte [ebp - 4], 0xe
call fcn.00405960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x13c]
call fcn.00405d60
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00404f30
xor ebx, ebx
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00404130
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x1f
push eax
call fcn.00456100
mov edx, dword [ebp - 0x8c]
or edi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 7
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bcd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40c309
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3b7
jmp 0x40c2ff
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bc80
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae ecx, dword [ebp - 0x40]
push dword [eax + 0x44]
push ecx
call fcn.00469f20
test eax, eax
jns 0x40be25
call fcn.0046f390
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40bc80
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x28]
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
mov ebx, dword [eax + 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004174a0
push 3
push 0x566bbc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004174a0
mov byte [ebp - 4], 0x10
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x13c]
push 0x3ff
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404570
mov esi, eax
push str.DownloadAndUnzipResZip__TrayUnzip7zFile__un_zip_failed_path:
push esi
mov byte [ebp - 4], 0x11
call fcn.00405960
test ebx, ebx
mov ecx, 0x566aa0
cmovne ecx, ebx
push ecx
push esi
call fcn.00403250
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x13c]
call fcn.00405d60
lea ecx, [ebp - 0x58]
call fcn.00404f30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
jmp 0x40bc7b
mov esi, dword [ebp - 0xa0]
mov eax, dword [esi + 0x44]
mov byte [ebp - 4], 0x12
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40be44
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40be5a
call fcn.004106d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40c3bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
or ebx, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x44]
push 6
push str.ui.ui
mov dword [ebp - 0x98], ebx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00409930
mov esi, dword [ebp - 0x8c]
add esp, 0x14
mov ecx, esi
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40beb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00417590
mov byte [ebp - 4], 0x14
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bee4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
cmovae esi, dword [ebp - 0x70]
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40c3c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x15
call fcn.004093d0
test al, al
jne 0x40bf4c
test esi, esi
jne 0x40bf28
xor ecx, ecx
jmp 0x40bf3f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x8c]
call fcn.004157e0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x16
push eax
call fcn.00456100
mov edx, dword [ebp - 0x8c]
add esp, 4
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bf80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x17
push eax
push 0x567acc
push 0xcd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00454420
add esp, 0x10
test eax, eax
je 0x40c14e
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bfe7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00417590
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00458600
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0x17
mov esi, eax
cmp edx, 8
jb 0x40c057
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c04d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3d0
push edx
push ecx
call fcn.004610ef
add esp, 8
test esi, esi
jg 0x40c249
call fcn.0046f390
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c132
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.004174a0
push 3
push 0x566bbc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004174a0
mov byte [ebp - 4], 0x1a
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x13c]
push 0x40e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404570
mov esi, eax
push str.TrayUnzip7zFile_failed__save_path_failed._path
push esi
mov byte [ebp - 4], 0x1b
call fcn.00405960
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
mov eax, 0x566aa0
cmovae ecx, dword [ebp - 0x70]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00403250
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x13c]
call fcn.00405d60
lea ecx, [ebp - 0x58]
call fcn.00404f30
lea ecx, [ebp - 0x28]
call fcn.00404f30
lea ecx, [ebp - 0x88]
call fcn.00404f30
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00404f80
jmp 0x40bc80
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xa0]
sub esp, 0x18
mov edx, esp
mov esi, dword [eax + 0x9c]
mov ecx, esi
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c180
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00417590
call fcn.0040c3f0
add esp, 0x1c
test eax, eax
jne 0x40c249
call fcn.0046f390
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c132
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.004174a0
push 3
push 0x566bbc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004174a0
mov byte [ebp - 4], 0x1d
call fcn.0046f390
mov edi, eax
lea ecx, [ebp - 0x13c]
push 0x414
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404570
mov esi, eax
push str.TrayUnzip7zFile_failed__get_UI_resource_failed.
push esi
mov byte [ebp - 4], 0x1e
call fcn.00405960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
jmp 0x40c117
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c132
mov edx, dword [ebp - 0x74]
mov ebx, 1
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x40c2a3
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c299
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3d5
push edx
push ecx
call fcn.004610ef
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x40bc82
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3da
push edx
push ecx
call fcn.004610ef
add esp, 8
jmp 0x40bc82
push edx
push ecx
call fcn.004610ef
add esp, 8
mov esi, dword [ebp - 0x9c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test esi, esi
je 0x40c345
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c345
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c345
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40c37b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c371
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3df
push edx
push ecx
call fcn.004610ef
add esp, 8
mov eax, ebx
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.00460f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
call fcn.0050f6a9
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
call fcn.0050f6a9
call fcn.0050f6a9
call fcn.0050f6a9
call fcn.0050f6a9
int3