Function at 0x410ac0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433431
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x443080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
or edi, 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x410b36
push 0x104
push esi
call fcn.00418629
add esp, 8
test eax, eax
je 0x410b36
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b16
mov ebx, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.004120f0
jmp 0x410bf0
mov dword [ebp - 4], 0
call fcn.0040f760
mov ecx, eax
test ecx, ecx
je 0x411069
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004118f0
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040ae10
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
test edx, edx
jne 0x410ba9
xor ecx, ecx
jmp 0x410bbf
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410bb0
sub ecx, ebx
sar ecx, 1
mov ebx, dword [ebp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.004120f0
push 4
push str..log
mov ecx, ebx
call fcn.0040b2d0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410bf0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 3
call fcn.0040f760
mov ecx, eax
test ecx, ecx
je 0x411069
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x10], esi
push 0x5c
push dword [ebx]
mov dword [ebp - 4], 4
call fcn.00415b44
add esp, 8
test eax, eax
je 0x410c72
sub eax, dword [ebx]
sar eax, 1
test eax, eax
jle 0x410c72
inc eax
mov ecx, ebx
push eax
push 0
lea eax, [ebp + 0xc]
push eax
call fcn.00411ab0
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.0040ae10
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410c6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
jmp 0x410ea3
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jle 0x410c91
push ecx
lea ecx, [ebp + 0x10]
call fcn.0040ae10
mov esi, dword [ebp + 0x10]
jmp 0x410da3
mov edi, dword [ebp + 8]
test edi, edi
je 0x410d4d
push 0x104
push edi
call fcn.00418629
add esp, 8
test eax, eax
je 0x410d4d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x410cd6
push 0x104
lea ecx, [ebp + 0x10]
call fcn.00411c00
mov esi, dword [ebp + 0x10]
push 0
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.00418629
add esp, 8
test eax, eax
js 0x41105f
cmp eax, dword [esi - 8]
jg 0x41105f
xor ecx, ecx
mov dword [esi - 0xc], eax
push 8
mov word [esi + eax*2], cx
lea ecx, [ebp + 0x10]
push str.Lenovo_
call fcn.0040b2d0
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410d20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp + 0x10]
call fcn.0040b2d0
push 6
push str.logs_
lea ecx, [ebp + 0x10]
call fcn.0040b2d0
mov esi, dword [ebp + 0x10]
jmp 0x410da3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x410d71
push 0x104
lea ecx, [ebp + 0x10]
call fcn.00411c00
mov esi, dword [ebp + 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.00418629
add esp, 8
test eax, eax
js 0x41105f
cmp eax, dword [esi - 8]
jg 0x41105f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
call fcn.00411fe0
mov eax, dword [eax]
mov ecx, 0x434304
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410dde
test dx, dx
je 0x410dda
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410dde
add eax, 4
add ecx, 4
test dx, dx
jne 0x410db8
xor edi, edi
jmp 0x410de3
sbb edi, edi
or edi, 1
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x410e18
push 1
push 0x434304
lea ecx, [ebp + 0x10]
call fcn.0040b2d0
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi - 0x10]
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x410e31
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x410e3f
call fcn.0040f760
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 8
test ecx, ecx
je 0x411069
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 7
mov dword [ebp + 0xc], eax
mov eax, dword [ebx]
mov dword [ebp - 0x18], 1
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.0040bcd0
add esp, 0x14
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0040ae10
mov edx, dword [ebp + 0xc]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x410eb7
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x410ecc
xor ebx, ebx
jmp 0x411034
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x410fcb
push 0x2e
push dword [ebx]
call fcn.00415b44
mov edi, eax
add esp, 8
test edi, edi
jne 0x410eef
or edi, 0xffffffff
jmp 0x410ef3
sub edi, dword [ebx]
sar edi, 1
push edi
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov ecx, ebx
call fcn.00411ab0
push 7
push str..normal
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0040b2d0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax - 0xc]
sub eax, edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.00411fe0
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
push dword [eax - 0xc]
push eax
call fcn.0040b2d0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410f5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410f74
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str..logdat
lea eax, [ebp + 8]
push ebx
push eax
call fcn.0040ae80
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.0040ae10
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410fad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410fcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x98]
push 0xfde9
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0x9c]
push eax
call fcn.00410320
mov edx, dword [ebp - 0x9c]
mov ecx, edx
mov byte [ebp - 4], 0xc
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411000
sub ecx, ebx
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea ecx, [ecx + 0x30]
call fcn.00404dd0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
cmp eax, ecx
je 0x41102f
push eax
call fcn.004189d4
add esp, 4
mov ebx, 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x411049
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.0040b460
push 0x80004005
call fcn.0040b460
int3