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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f76f
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.0044d380
push 0x208
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.005126f0
add esp, 0x10
call fcn.00471f70
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.005126f0
add esp, 0xc
call fcn.00471f70
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 0x4598a8
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 0x4598bf
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.004b5b90
test eax, eax
jns 0x459a66
push str.Extract7z::Unzip7zFile_fail.
call fcn.0044d380
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.004562c0
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 0x45992b
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.00412940
lea eax, [esi + 0x100]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4dc]
push str.ex_ary_mate_
push eax
call fcn.00455160
push str.ex_ary_kind_1ex_ary_code_
push eax
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 1
push eax
call fcn.004550f0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00455060
add esp, 0x24
lea ecx, [ebp - 0x4c4]
call fcn.004109e0
lea ecx, [ebp - 0x4dc]
call fcn.004109e0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 6
call fcn.004109e0
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.004349e0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00430e40
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 0x459a35
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 0x459a54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4ac]
call fcn.004109e0
xor al, al
jmp 0x459c87
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x459ca5
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 0x459a9f
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.004349e0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00430e40
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 0x459b3b
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 0x459b5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x459b64
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 0x459c5c
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 0x459ba6
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x494]
call fcn.00412940
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 0x459bf2
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.00412940
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.0045f150
add esp, 0x14
lea ecx, [ebp - 0x47c]
call fcn.004109e0
lea ecx, [ebp - 0x494]
call fcn.004109e0
jmp 0x459c69
push str.SoftInstaller::InstallFile__7z_package__root_dir_not_found.
call fcn.0044d380
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x459c85
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.004acb08
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ae00
int3