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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56485f
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x5cac4c]
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.0044ca10
push 0x208
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.00507970
add esp, 0x10
call fcn.0046f720
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.00507970
add esp, 0xc
call fcn.0046f720
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 0x458468
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 0x45847f
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.004b3340
test eax, eax
jns 0x458626
push str.Extract7z::Unzip7zFile_fail.
call fcn.0044ca10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00454e80
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 0x4584eb
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.00453d20
push str.ex_ary_kind_1ex_ary_code_
push eax
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 1
push eax
call fcn.00453cb0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00453c20
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.0040e030
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 7
call fcn.0040e030
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.004345f0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00430a50
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 0x4585f5
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 0x458614
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 0x458847
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x458865
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 0x45865f
mov ecx, dword [esi + 0x100]
push ecx
lea eax, [ebp - 0x4e4]
push str.ex_ary_mate__sex_ary_kind_1
push eax
call fcn.0040b090
add esp, 0xc
lea ecx, [ebp - 0x4e8]
push str.extracsucc
call fcn.0040e030
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xb
call fcn.0040e030
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.004345f0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00430a50
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 0x4586fb
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 0x45871c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x458724
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 0x45881c
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 0x458766
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 0x4587b2
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.0045dd20
add esp, 0x14
lea ecx, [ebp - 0x47c]
call fcn.004109e0
lea ecx, [ebp - 0x494]
call fcn.004109e0
jmp 0x458829
push str.SoftInstaller::InstallFile__7z_package__root_dir_not_found.
call fcn.0044ca10
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x458845
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.004aa2b8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ad60
int3