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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f67f
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x101d7c7c]
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.1004d370
push 0x208
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.10112750
add esp, 0x10
call fcn.10071f70
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.10112750
add esp, 0xc
call fcn.10071f70
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 0x10059898
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 0x100598af
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.100b5c00
test eax, eax
jns 0x10059a56
push str.Extract7z::Unzip7zFile_fail.
call fcn.1004d370
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.100562b0
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 0x1005991b
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.10012940
lea eax, [esi + 0x100]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4dc]
push str.ex_ary_mate_
push eax
call fcn.10055150
push str.ex_ary_kind_1ex_ary_code_
push eax
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 1
push eax
call fcn.100550e0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.10055050
add esp, 0x24
lea ecx, [ebp - 0x4c4]
call fcn.100109e0
lea ecx, [ebp - 0x4dc]
call fcn.100109e0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 6
call fcn.100109e0
push str.extracfail
lea ecx, [ebp - 0x4e4]
call fcn.1000e0d0
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 7
call fcn.1000e0d0
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.100349e0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.10030e40
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 0x10059a25
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 0x10059a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4ac]
call fcn.100109e0
xor al, al
jmp 0x10059c77
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x10059c95
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 0x10059a8f
mov ecx, dword [esi + 0x100]
push ecx
lea eax, [ebp - 0x4e4]
push str.ex_ary_mate__sex_ary_kind_1
push eax
call fcn.1000b130
add esp, 0xc
lea ecx, [ebp - 0x4e8]
push str.extracsucc
call fcn.1000e0d0
push str.eden_bro
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xb
call fcn.1000e0d0
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.100349e0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.10030e40
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 0x10059b2b
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 0x10059b4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x10059b54
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 0x10059c4c
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 0x10059b96
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x494]
call fcn.10012940
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 0x10059be2
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.10012940
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.1005f140
add esp, 0x14
lea ecx, [ebp - 0x47c]
call fcn.100109e0
lea ecx, [ebp - 0x494]
call fcn.100109e0
jmp 0x10059c59
push str.SoftInstaller::InstallFile__7z_package__root_dir_not_found.
call fcn.1004d370
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10059c75
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.100acb08
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000ae00
int3