Function at 0x412930
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df428
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x52a958]
call fcn.00418bb0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
cmp dword [esi - 0xc], 8
mov dword [ebp - 4], 0
jl 0x4129a3
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4129a3
push esi
push str._RemoveInstalledDir__delete__s
call fcn.00433e30
push esi
call fcn.00412db0
add esp, 0xc
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x74]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
or ebx, 0xffffffff
mov byte [ebp - 4], 1
cmp dword [edi - 0xc], 8
jl 0x412cf7
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412cf7
push edi
push str._RemoveInstalledDir__delete__s
call fcn.00433e30
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x412a0b
test al, 1
je 0x412a0b
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4eacd4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040bda0
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00412d60
mov ecx, dword [0x52a958]
add esp, 0x10
call fcn.00418d40
mov eax, dword [eax + 0x80]
sub eax, 0x10
push eax
call fcn.00404230
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x30], eax
push eax
mov byte [ebp - 4], 3
call fcn.00412d60
mov ecx, dword [0x52a958]
add esp, 8
call fcn.00418d40
mov eax, dword [eax + 0x98]
sub eax, 0x10
push eax
call fcn.00404230
mov dword [ebp - 0x28], eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push eax
mov byte [ebp - 4], 4
call fcn.00412d60
mov ecx, dword [0x52a958]
add esp, 8
call fcn.00418d40
mov eax, dword [eax + 0x78]
sub eax, 0x10
push eax
call fcn.00404230
mov dword [ebp - 0x24], eax
add eax, 0x10
mov dword [ebp - 0x38], eax
push eax
mov byte [ebp - 4], 5
call fcn.00412d60
mov ecx, dword [0x52a958]
add esp, 8
call fcn.00418d40
mov eax, dword [eax + 0x7c]
sub eax, 0x10
push eax
call fcn.00404230
mov dword [ebp - 0x20], eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
push eax
mov byte [ebp - 4], 6
call fcn.00412d60
mov ecx, dword [0x52a958]
add esp, 8
call fcn.00418d40
mov eax, dword [eax + 0x20]
sub eax, 0x10
push eax
call fcn.00404230
mov dword [ebp - 0x10], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x40], eax
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 7
je 0x412b71
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x412d4a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov byte [ebp - 4], 8
push eax
push edi
lea eax, [ebp - 0x18]
push str._s_s.lnk
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x18]
push esi
call fcn.00412d60
add esp, 0x14
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412b6e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412c4c
push edi
push str._RemoveInstalledDir__failed_delete__s
call fcn.00433e50
mov edx, dword [ebp - 0x10]
add esp, 8
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412bb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412bcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412be9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 0
jmp 0x412cfe
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412ca0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412cbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412cd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412cf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412d19
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412d35
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3