Function at 0x10019ac0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x1004f5b8
push eax
mov dword fs:[0], esp
sub esp, 0x3d0
push ebx
push esi
push edi
push ecx
mov ecx, dword [ebp + 8]
push 3
call fcn.1003c780
mov esi, eax
add esp, 8
test esi, esi
jne 0x10019b12
xor al, al
mov ecx, dword [esp + 0x3dc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3e4], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x10019bde
lea eax, [esp + 0x1d8]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10019bd7
lea ecx, [esp + 0x1d8]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019b70
sub ecx, edx
cmp byte [esp + ecx + 0x1d7], 0x5c
jne 0x10019b8a
mov byte [esp + ecx + 0x1d7], al
cmp byte [esp + 0x1d8], 0
jne 0x10019bad
xor ecx, ecx
lea eax, [esp + 0x1d8]
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.10001a10
jmp 0x10019bf0
lea ecx, [esp + 0x1d8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019bb7
sub ecx, edx
lea eax, [esp + 0x1d8]
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.10001a10
jmp 0x10019bf0
xor bl, bl
jmp 0x1001a170
lea ecx, [esp + 0x78]
cmp ecx, eax
je 0x10019bf0
push 0xffffffffffffffff
push 0
push eax
call fcn.100018e0
xor edx, edx
mov byte [esp + 0x13], 1
mov dword [esp + 0xa8], edx
mov byte [esp + 0xac], dl
mov dword [esp + 0x1d0], edx
cmp dword [esi], 1
mov dword [esp + 0x14], edx
je 0x10019c24
mov dword [0x1006ee0c], 0x80000
jmp 0x10019f37
mov ebx, dword [esi + 4]
mov ecx, dword [ebx]
cmp dword [ecx + 4], 0xffffffff
jg 0x10019c39
mov eax, 0x10000
jmp 0x10019cc8
cmp dword [ebx + 4], 0xffffffff
je 0x10019c44
call fcn.1003d4c0
mov eax, dword [ebx]
mov dword [ebx + 4], 0xffffffff
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xa8], edx
mov byte [esp + 0xac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0
xor ebx, ebx
mov dword [0x1006ee0c], eax
test edx, edx
jle 0x10019f37
jmp 0x10019ce0
mov dword [esp + 0xa8], 0
mov byte [esp + 0xac], 0
mov dword [esp + 0x1d0], 0
cmp dword [esi], 1
je 0x10019d0f
mov dword [0x1006ee0c], 0x80000
jmp 0x10019d25
mov ecx, dword [esi + 4]
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.1003cc70
mov dword [0x1006ee0c], eax
push 0x10059c78
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x64]
call fcn.100074c0
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x3e4], 1
push ecx
mov edx, eax
lea ecx, [esp + 0x34]
call fcn.10004d50
add esp, 4
mov byte [esp + 0x3e4], 3
cmp dword [esp + 0x74], 0x10
jb 0x10019d70
push dword [esp + 0x60]
call edi
add esp, 4
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x30]
cmp ecx, 0x10
mov dword [esp + 0x74], 0xf
cmovae eax, edx
mov dword [esp + 0x70], 0
cmp dword [esi], 1
mov byte [esp + 0x60], 0
jne 0x10019eff
mov ecx, dword [esi + 4]
sub esp, 8
push eax
push ebx
call fcn.1003c8b0
mov dword [0x1006ee0c], eax
test eax, eax
jne 0x10019ef5
cmp byte [ebp + 0x18], al
je 0x10019e60
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x90]
push 0x10059c78
call fcn.100074c0
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x3e4], 4
push ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.10004d50
add esp, 4
mov byte [esp + 0x3e4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10019e08
mov eax, dword [eax]
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x30]
mov edx, eax
cmovae ecx, dword [esp + 0x30]
call fcn.1001b3d0
cmp dword [esp + 0x5c], 0x10
jb 0x10019e2d
push dword [esp + 0x48]
call edi
add esp, 4
mov byte [esp + 0x3e4], 3
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x10019e60
push dword [esp + 0x90]
call edi
add esp, 4
cmp byte [esp + 0xac], 0
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jne 0x10019e83
xor ecx, ecx
jmp 0x10019e99
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019e90
sub ecx, edx
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x50]
call fcn.10001a10
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x3e8], 6
call fcn.10003f80
cmp dword [esp + 0x5c], 0x10
jb 0x10019ed0
push dword [esp + 0x48]
call edi
add esp, 4
mov byte [esp + 0x3e4], 0
cmp dword [esp + 0x44], 0x10
jb 0x10019ee8
push dword [esp + 0x30]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x10019ce0
jmp 0x10019f37
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
jmp 0x10019f09
mov dword [0x1006ee0c], 0x80000
cmp ecx, 0x10
lea eax, [esp + 0x30]
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov byte [esp + 0x3e4], al
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x13], al
jb 0x10019f37
push dword [esp + 0x30]
call edi
add esp, 4
mov ecx, dword [esi]
cmp ecx, 1
sete al
test al, al
je 0x10019f71
cmp ecx, 1
je 0x10019f54
mov dword [0x1006ee0c], 0x80000
jmp 0x10019fa3
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.1003c850
mov dword [0x1006ee0c], eax
test ebx, ebx
je 0x10019f9d
push ecx
mov ecx, ebx
call fcn.1000d2f0
jmp 0x10019f9d
cmp ecx, 2
je 0x10019f82
mov dword [0x1006ef90], 0x80000
jmp 0x10019fa3
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.10041f90
mov dword [0x1006ef90], eax
test ebx, ebx
je 0x10019f9d
push ecx
mov ecx, ebx
call fcn.1000d340
push esi
call edi
add esp, 4
mov bl, byte [esp + 0x13]
test bl, bl
je 0x1001a170
cmp byte [ebp + 0x18], 0
je 0x1001a170
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov byte [esp + 0x3e4], 7
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001a16c
xor esi, esi
mov dword [esp + 0x14], esi
lea ecx, [ecx]
push 0x10059c78
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x94]
call fcn.100074c0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov byte [esp + 0x3e4], 8
mov ecx, dword [ecx]
add ecx, esi
push ecx
lea ecx, [esp + 0x64]
call fcn.100075a0
mov esi, eax
add esp, 4
lea eax, [esp + 0x18]
cmp eax, esi
je 0x1001a0ae
cmp dword [esp + 0x2c], 0x10
jb 0x1001a050
push dword [esp + 0x18]
call edi
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
cmp dword [esi + 0x14], 0x10
jae 0x1001a083
mov eax, dword [esi + 0x10]
inc eax
je 0x1001a08f
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1001a08f
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x74], 0x10
jb 0x1001a0be
push dword [esp + 0x60]
call edi
add esp, 4
mov byte [esp + 0x3e4], 7
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x1001a0f1
push dword [esp + 0x90]
call edi
add esp, 4
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001a12f
test al, 0x10
lea eax, [esp + 0x18]
je 0x1001a11e
push eax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::DeleteDir_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
jmp 0x1001a12f
cmp dword [esp + 0x2c], 0x10
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x14]
inc ebx
mov esi, dword [esp + 0x14]
add esi, 0x18
mov dword [esp + 0x14], esi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1001a000
cmp dword [esp + 0x2c], 0x10
jb 0x1001a16c
push dword [esp + 0x18]
call edi
add esp, 4
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x8c], 0x10
jb 0x1001a183
push dword [esp + 0x78]
call edi
add esp, 4
mov ecx, dword [esp + 0x3dc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret