Function at 0x40a770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e9f9
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x6d906c]
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
mov ebx, dword [ebp + 8]
push 0x3a8
sub esp, 0x18
mov dword [ebp - 0x194], 0
mov eax, esp
push 0
push 0x1c
push eax
call fcn.004c5eb8
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.004c4df1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004c44ed
add esp, 0x24
test eax, eax
jne 0x40a830
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x6c2a30
cmp eax, 1
jb 0x40a819
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.004fa580
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40a830
mov byte [ebp - 0x18c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18c]
push 1
call fcn.00404bc0
mov edi, dword [ebx + 0xd8]
test edi, edi
je 0x40a893
cmp dword [ebx + 0xdc], 0x10
lea ecx, [ebx + 0xc8]
jb 0x40a84b
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edx, dword [ebp - 0x18]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40a87d
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea esi, [eax + edx]
push esi
call fcn.004fa580
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40a893
mov byte [ebp - 0x18c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18c]
push edi
call fcn.00404bc0
lea eax, [ebp - 0x28]
push eax
call fcn.004c44ed
add esp, 4
test eax, eax
jne 0x40a8f1
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x6c2a30
cmp eax, 1
jb 0x40a8da
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.004fa580
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40a8f1
mov byte [ebp - 0x18c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18c]
push 1
call fcn.00404bc0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40a9bc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00403930
lea eax, [ebp - 0x40]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x40a941
mov eax, dword [eax]
push eax
call fcn.004c5d56
mov byte [ebp - 4], 1
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40a988
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a97e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afc7
push edx
push ecx
call fcn.004216e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40a9b8
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea edi, [ebx + 0x30]
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40a9d4
mov ecx, dword [edi]
push 0
push 0
push 0x6c2a34
push eax
push ecx
call fcn.004dacb0
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x40a9fe
cmp dword [ebp - 0x14], 0x10
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403f10
cmp dword [ebx + 0x16c], 0x10
lea edx, [ebx + 0x158]
jb 0x40aa13
mov edx, dword [ebx + 0x158]
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
sub eax, esi
mov ecx, dword [ebx + 0x168]
mov dword [ebp - 0x18c], ecx
cmp ecx, eax
ja 0x40aa54
cmp dword [edi + 0x14], 0x10
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x40aa3b
mov eax, dword [edi]
push ecx
add esi, eax
push edx
push esi
call fcn.004fa580
mov eax, dword [ebp - 0x18c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40aa6b
push ecx
push edx
mov byte [ebp - 0x18c], 0
push dword [ebp - 0x18c]
push ecx
mov ecx, edi
call fcn.00404bc0
call fcn.004c9dfa
test al, al
je 0x40ab14
mov eax, dword [0x6e936c]
test eax, eax
je 0x40ab14
cmp dword [eax + 4], 5
jl 0x40ab14
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x49
push str.CDoOwerInstall::OnDoGreenInstall
push 5
call fcn.00409de0
mov dword [ebp - 0x18c], eax
lea esi, [eax + 0x30]
mov byte [ebp - 4], 4
mov edx, str.ower_7z_ins:
mov ecx, esi
call fcn.00409c50
cmp dword [ebx + 0xc4], 0x10
lea edx, [ebx + 0xb0]
jb 0x40aad0
mov edx, dword [edx]
mov ecx, esi
call fcn.00409c50
mov edx, 0x6c29f4
mov ecx, esi
call fcn.00409c50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40aaed
mov edx, dword [edi]
mov ecx, esi
call fcn.00409c50
push dword [ebp - 0x18c]
mov ecx, dword [0x6e936c]
call fcn.0040aff0
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0
call fcn.0040a1e0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40ab1e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40adae
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40ab37
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40adae
push 0x6c2a6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18c], eax
call fcn.004c9dfa
test al, al
je 0x40ac02
mov ecx, dword [0x6e936c]
test ecx, ecx
je 0x40ac02
cmp dword [ecx + 4], 5
jl 0x40ac02
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x51
push str.CDoOwerInstall::OnDoGreenInstall
push 5
call fcn.00409de0
mov dword [ebp - 0x190], eax
lea esi, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.ower_7z_inst_path:
mov ecx, esi
call fcn.00409c50
cmp dword [edi + 0x14], 0x10
jb 0x40abb5
mov edi, dword [edi]
mov edx, edi
mov ecx, esi
call fcn.00409c50
mov edx, 0x6c2a84
mov ecx, esi
call fcn.00409c50
cmp dword [ebx + 0x154], 0x10
lea edx, [ebx + 0x140]
jb 0x40abdb
mov edx, dword [edx]
mov ecx, esi
call fcn.00409c50
push dword [ebp - 0x190]
mov ecx, dword [0x6e936c]
call fcn.0040aff0
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0
call fcn.0040a1e0
cmp dword [ebp - 0x18c], 0
je 0x40adae
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x140]
mov ecx, esp
push eax
call fcn.00403930
lea eax, [ebp - 0x40]
push eax
call fcn.004c4b35
mov byte [ebp - 4], 6
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421711
mov edx, dword [ebp - 0x30]
add esp, 0x24
mov esi, eax
mov dword [ebp - 0x190], esi
lea ecx, [edx + 1]
test ecx, ecx
je 0x40ac71
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea edx, [edx*2 + 2]
mov ecx, esi
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040a3f0
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00403930
lea eax, [ebp - 0x58]
push eax
call fcn.004c4b35
mov byte [ebp - 4], 7
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421711
mov edx, dword [ebp - 0x48]
add esp, 0x24
mov esi, eax
lea ecx, [edx + 1]
test ecx, ecx
je 0x40ace4
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea edx, [edx*2 + 2]
mov ecx, esi
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040a3f0
mov edi, dword [ebp - 0x190]
push esi
push edi
call dword [ebp - 0x18c]
push 2
push edi
call fcn.004216e0
push 2
push esi
call fcn.004216e0
mov byte [ebp - 4], 6
add esp, 0x18
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ad5d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afcc
push edx
push ecx
call fcn.004216e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40adae
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ada4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd1
push edx
push ecx
call fcn.004216e0
add esp, 8
mov ecx, dword [ebx + 0x1d4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x1d0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40af73
lea ecx, [ebp - 0x54]
call fcn.004c80a6
mov byte [ebp - 4], 8
mov eax, dword [ebx + 0x1d4]
mov esi, dword [ebx + 0x1d0]
mov dword [ebp - 0x190], eax
cmp esi, eax
je 0x40aeb1
push esi
lea ecx, [ebp - 0x40]
call fcn.00403930
push 0
sub esp, 0x18
mov byte [ebp - 4], 9
mov edi, esp
lea eax, [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00403930
push edi
call fcn.004c49f1
add esp, 0x1c
lea ecx, [ebp - 0x54]
call fcn.004c842a
movzx eax, al
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x194], eax
test eax, eax
jne 0x40ae80
cmp edx, 0x10
jb 0x40ae6f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afc7
push edx
push ecx
call fcn.004216e0
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x190]
jne 0x40adf7
jmp 0x40aeb1
cmp edx, 0x10
jb 0x40aeb1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aea7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd6
push edx
push ecx
call fcn.004216e0
add esp, 8
call fcn.004c9dfa
test al, al
je 0x40af6b
mov eax, dword [0x6e936c]
test eax, eax
je 0x40af6b
cmp dword [eax + 4], 5
jl 0x40af6b
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x70
push str.CDoOwerInstall::OnDoGreenInstall
push 5
call fcn.00409de0
mov dword [ebp - 0x190], eax
lea esi, [eax + 0x30]
mov byte [ebp - 4], 0xa
mov edx, str.ower_7z_ins:
mov ecx, esi
call fcn.00409c50
cmp dword [ebx + 0xc4], 0x10
lea edx, [ebx + 0xb0]
jb 0x40af16
mov edx, dword [edx]
mov ecx, esi
call fcn.00409c50
mov edx, str._result:
mov ecx, esi
call fcn.00409c50
push dword [ebp - 0x194]
mov ecx, esi
call fcn.0040cad0
mov edi, dword [0x6e936c]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x40af60
mov ebx, dword [ebp - 0x190]
nop word [eax + eax]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x40af50
lea ecx, [ebp - 0x188]
call fcn.0040a1e0
lea ecx, [ebp - 0x54]
call fcn.004c824d
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40afa3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afdb
push edx
push ecx
call fcn.004216e0
add esp, 8
mov al, byte [ebp - 0x194]
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.00421065
mov esp, ebp
pop ebp
ret 4
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
int3