Function at 0x459870
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f97f
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x5d7c7c]
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 esi, dword [ebp + 8]
push str.SoftInstaller::InstallFile__7z_package.
mov dword [ebp - 0x4ec], esi
call fcn.0044d3f0
push 0x208
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.00512920
add esp, 0x10
call fcn.00472010
push 0x104
lea edx, [ebp - 0x44c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x44c]
push str.ComputerZ.set
push eax
call edi
push 0x208
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00512920
add esp, 0xc
call fcn.00472010
push 0x104
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
jb 0x459938
mov eax, dword [esi + 0x4c]
push eax
lea eax, [ebp - 0x244]
push eax
call edi
cmp dword [esi + 0x7c], 8
lea ebx, [esi + 0x68]
mov eax, ebx
jb 0x45994f
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.004b5c20
test eax, eax
jns 0x459af6
push str.Extract7z::Unzip7zFile_fail.
call fcn.0044d3f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00456350
xor ecx, ecx
mov dword [ebp - 0x454], 0
mov word [ebp - 0x464], cx
add esp, 8
lea ecx, [ebp - 0x12]
mov dword [ebp - 0x450], 7
cmp eax, ecx
je 0x4599bb
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.004129e0
lea eax, [esi + 0x100]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4dc]
push str.ex_ary_mate_
push eax
call fcn.004551f0
push str.ex_ary_kind_1ex_ary_code_
push eax
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 1
push eax
call fcn.00455180
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.004550f0
add esp, 0x24
lea ecx, [ebp - 0x4c4]
call fcn.00410a90
lea ecx, [ebp - 0x4dc]
call fcn.00410a90
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 6
call fcn.00410a90
push str.extracfail
lea ecx, [ebp - 0x4e4]
call fcn.0040e0d0
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 7
call fcn.0040e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x4ec], esp
mov dword [eax + 0x24], 0
cmp dword [ebp - 0x498], 8
lea eax, [ebp - 0x4ac]
push 0
cmovae eax, dword [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4e4]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x4e0]
push eax
call fcn.00434a60
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00430ec0
mov edx, dword [ebp - 0x4e0]
or edi, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459ac5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4e4]
mov byte [ebp - 4], 6
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x459ae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4ac]
call fcn.00410a90
xor al, al
jmp 0x459d17
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x459d35
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4e4], eax
cmp dword [esi + 0x114], 8
lea ecx, [esi + 0x100]
mov dword [ebp - 4], 0xa
jb 0x459b2f
mov ecx, dword [esi + 0x100]
push ecx
lea eax, [ebp - 0x4e4]
push str.ex_ary_mate__sex_ary_kind_1
push eax
call fcn.0040b130
add esp, 0xc
lea ecx, [ebp - 0x4e8]
push str.extracsucc
call fcn.0040e0d0
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xb
call fcn.0040e0d0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x4f0], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x4e4]
lea eax, [ebp - 0x4e8]
push 0
push esi
push eax
lea eax, [ebp - 0x4e0]
mov byte [ebp - 4], 0xd
push eax
call fcn.00434a60
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00430ec0
mov edx, dword [ebp - 0x4e0]
or edi, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459bcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4e8]
mov eax, edi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459bec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x459bf4
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459cec
xor eax, eax
mov dword [ebp - 0x484], 0
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x480], 7
mov word [ebp - 0x494], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c36
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x494]
call fcn.004129e0
xor eax, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 7
lea edx, [ecx + 2]
mov word [ebp - 0x47c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c82
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.004129e0
mov ecx, dword [ebp - 0x4ec]
mov byte [ebp - 4], 0xf
movzx eax, byte [ecx + 0x64]
push eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ecx + 0x4c]
push eax
lea eax, [ecx + 0x100]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.0045f1e0
add esp, 0x14
lea ecx, [ebp - 0x47c]
call fcn.00410a90
lea ecx, [ebp - 0x494]
call fcn.00410a90
jmp 0x459cf9
push str.SoftInstaller::InstallFile__7z_package__root_dir_not_found.
call fcn.0044d3f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x459d15
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.004acb88
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ae00
int3