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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1152
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c4], esi
push 0x208
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x2a8], 0
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x27c], 0
mov word [ebp - 0x28c], ax
lea ecx, [ebp - 0x28c]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x278], 7
push eax
call fcn.00413e50
push str.repair.7z
lea eax, [ebp - 0x25c]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118a5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 1
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118af
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4110c2
movzx eax, ax
lea ecx, [ebp - 0x2c0]
push eax
call fcn.00403ab0
jmp 0x4110f2
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4110d0
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00403da0
add esi, 0xa0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x411104
mov esi, dword [esi]
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118b9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 4
test esi, esi
je 0x411161
test esi, 0xffff0000
jne 0x411144
movzx eax, si
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403ab0
jmp 0x411170
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411150
sub ecx, edx
sar ecx, 1
jmp 0x411163
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x2bc]
call fcn.00403da0
push 0x20
mov byte [ebp - 4], 5
call fcn.0044dbb3
mov esi, eax
add esp, 4
mov dword [ebp - 0x2a8], esi
test esi, esi
je 0x4111f7
mov dword [esi], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118c3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118cd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push 0
push 0
push 1
add eax, 0x10
push 0
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
jmp 0x4111f9
xor esi, esi
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0
push esi
mov dword [ebp - 0x2b0], 0
call fcn.0040e490
mov byte [ebp - 4], 6
call fcn.00411b80
mov edi, dword [ebp - 0x2c0]
mov esi, dword [ebp - 0x2bc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x411370
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x411370
mov edx, dword [eax]
mov ecx, eax
push 0
push str.ungzip
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x2a8]
push 0
push str.gzip
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x411370
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 0
push eax
mov dword [ebp - 0x2c8], 0
call fcn.0040e5d0
mov edx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2cc]
mov dword [edx + 4], eax
mov ecx, dword [edx + 8]
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2a8], ecx
mov dword [edx + 8], eax
test ecx, ecx
je 0x4112f5
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4112f5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2a8]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x4112ef
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2b4]
mov ecx, dword [edx + 4]
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x2b4]
push edi
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x2b4]
push 0x258
push str.timeout
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x2b4]
push esi
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
mov eax, dword [ebp - 0x2b4]
je 0x411376
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x411376
push 0x92f90
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [ebp - 0x2b4]
jne 0x411376
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2a8], ecx
test ecx, ecx
je 0x411380
add eax, 0x14
jmp 0x411383
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2a8], 0
add eax, 0x1c
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040e970
mov ecx, dword [ebp - 0x2b0]
test ecx, ecx
je 0x4113bc
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4113bc
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2b0]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x4113bc
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4113d8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4113f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2a8], 0
je 0x411811
push 0x42
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00488360
push 0x21
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0045ae50
add esp, 0x18
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4118d7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x411463
movzx eax, ax
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403ab0
jmp 0x41148f
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411470
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00403da0
mov eax, dword [ebp - 0x2c4]
add eax, 0xd0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x4114a6
mov eax, dword [eax]
test eax, eax
je 0x4118e1
mov esi, dword [ebp - 0x2bc]
push eax
push esi
call fcn.004b6b2f
add esp, 8
test eax, eax
jne 0x4117f6
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x274]
mov word [ebp - 0x274], ax
mov eax, dword [ebp - 0x27c]
add eax, 7
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x2a8], 1
call fcn.00413f60
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push dword [ebp - 0x27c]
cmovae eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x274]
push eax
call fcn.00413be0
push 7
push str.7z.dll
lea ecx, [ebp - 0x274]
call fcn.00413be0
cmp dword [ebp - 0x260], 8
lea eax, [ebp - 0x274]
cmovae eax, dword [ebp - 0x274]
push eax
call fcn.004837d0
mov edx, dword [ebp - 0x260]
test eax, eax
mov byte [ebp - 4], 8
sete al
mov byte [ebp - 0x2b5], al
cmp edx, 8
jb 0x4115a7
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411597
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4118eb
push edx
push ecx
call fcn.0044d755
mov al, byte [ebp - 0x2b5]
add esp, 8
test al, al
jne 0x4117f6
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push 0
cmovae eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00483fe0
call fcn.00483d40
xor eax, eax
mov byte [ebp - 4], 0xa
mov word [ebp - 0x274], ax
lea ecx, [ebp - 0x274]
mov eax, dword [ebp - 0x27c]
inc eax
mov dword [ebp - 0x264], 0
push eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x2a8], 2
call fcn.00413f60
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push dword [ebp - 0x27c]
cmovae eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x274]
push eax
call fcn.00413be0
push 1
push 0x4ee59c
lea ecx, [ebp - 0x274]
call fcn.00413be0
mov eax, dword [ebp - 0x2c4]
cmp dword [eax + 0xcc], 8
lea ecx, [eax + 0xb8]
jb 0x411668
mov ecx, dword [eax + 0xb8]
push dword [eax + 0xc8]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00413be0
mov dword [ebp - 0x294], 0
xor ecx, ecx
mov dword [ebp - 0x290], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2a4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x294], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x260]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x4116fc
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4116f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4118f0
push edx
push ecx
call fcn.0044d755
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
cmp dword [ebp - 0x290], 8
mov word [ebp - 0x274], ax
lea eax, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2a4]
push eax
mov dword [ebp - 0x260], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411748
lea ecx, [ebp - 0x2a4]
call fcn.00406560
jmp 0x4117f6
mov ecx, dword [ebp - 0x2c4]
add ecx, 0xe8
cmp dword [ecx + 0x14], 8
jb 0x41175c
mov ecx, dword [ecx]
cmp dword [ebp - 0x290], 8
lea eax, [ebp - 0x2a4]
push 0
cmovae eax, dword [ebp - 0x2a4]
push 0
push 0
push 1
push 0
push ecx
push eax
call fcn.00466250
add esp, 0x1c
test eax, eax
jne 0x411795
lea ecx, [ebp - 0x2a4]
call fcn.00406560
jmp 0x4117f6
mov edx, dword [ebp - 0x290]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x4117d9
mov ecx, dword [ebp - 0x2a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4117cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4118f5
push edx
push ecx
call fcn.0044d755
add esp, 8
xor eax, eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411811
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2ac]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x411830
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41184e
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x41188a
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411880
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4118fa
push edx
push ecx
call fcn.0044d755
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
call fcn.004928c6
call fcn.004928c6
call fcn.004928c6
call fcn.004928c6
int3