Function at 0x10003d70
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100420c3
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x298], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x98]
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x2a0], ebx
mov ebx, dword [edi + 0x94]
mov dword [ebp - 0x284], eax
cmp ebx, eax
je 0x100040fa
xor eax, eax
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
call fcn.1000a9a0
mov byte [ebp - 4], 1
call fcn.10029aa0
mov esi, dword [edi + 0x34]
mov edi, dword [edi + 0x38]
cmp esi, edi
je 0x100040ca
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.1000a9a0
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.1000bc80
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003ff3
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10003ff3
push 0x40
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x10003ee2
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.10010d80
mov ecx, eax
mov dword [ebp - 0x280], eax
jmp 0x10003eea
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x27c], ecx
test ecx, ecx
je 0x10003efc
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x290]
lea ecx, [ebp - 0x27c]
mov edx, dword [eax + 4]
cmp ecx, edx
jae 0x1000402f
mov ecx, dword [eax]
lea eax, [ebp - 0x27c]
cmp ecx, eax
mov eax, dword [ebp - 0x290]
ja 0x1000402f
lea eax, [ebp - 0x27c]
sub eax, ecx
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x290]
sar dword [ebp - 0x294], 2
mov ecx, dword [eax + 8]
mov dword [ebp - 0x288], ecx
cmp edx, ecx
jne 0x10003fc7
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jae 0x10003fc7
sub edx, dword [eax]
mov ecx, 0x3fffffff
sar edx, 2
sub ecx, edx
cmp ecx, 1
jae 0x10003f77
push str.vector_T__too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
inc edx
mov dword [ebp - 0x29c], edx
mov edx, dword [ebp - 0x288]
sub edx, dword [eax]
sar edx, 2
mov ecx, edx
shr ecx, 1
mov dword [ebp - 0x288], ecx
mov ecx, 0x3fffffff
sub ecx, dword [ebp - 0x288]
cmp ecx, edx
jae 0x10003fa6
xor edx, edx
jmp 0x10003fac
add edx, dword [ebp - 0x288]
cmp edx, dword [ebp - 0x29c]
mov ecx, eax
cmovb edx, dword [ebp - 0x29c]
push edx
call fcn.1000b500
mov eax, dword [ebp - 0x290]
mov edx, dword [ebp - 0x294]
mov ecx, dword [eax]
lea ecx, [ecx + edx*4]
mov edx, dword [eax + 4]
test edx, edx
je 0x10003fdd
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x280]
add dword [eax + 4], 4
push ecx
mov ecx, dword [ebp - 0x298]
call fcn.10007320
cmp dword [ebp - 0x228], 8
jb 0x1000400b
push dword [ebp - 0x23c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x240], 8
jb 0x10004027
push dword [ebp - 0x254]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
jmp 0x10003e14
mov ecx, dword [eax + 8]
mov dword [ebp - 0x29c], ecx
cmp edx, ecx
jne 0x100040b2
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jae 0x100040b2
sub edx, dword [eax]
mov ecx, 0x3fffffff
sar edx, 2
sub ecx, edx
cmp ecx, 1
jae 0x10004062
push str.vector_T__too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
inc edx
mov dword [ebp - 0x294], edx
mov edx, dword [ebp - 0x29c]
sub edx, dword [eax]
sar edx, 2
mov ecx, edx
shr ecx, 1
mov dword [ebp - 0x288], ecx
mov ecx, 0x3fffffff
sub ecx, dword [ebp - 0x288]
cmp ecx, edx
jae 0x10004091
xor edx, edx
jmp 0x10004097
add edx, dword [ebp - 0x288]
cmp edx, dword [ebp - 0x294]
mov ecx, eax
cmovb edx, dword [ebp - 0x294]
push edx
call fcn.1000b500
mov eax, dword [ebp - 0x290]
mov edx, dword [eax + 4]
test edx, edx
je 0x10003fdd
mov ecx, dword [ebp - 0x280]
mov dword [edx], ecx
jmp 0x10003fe3
mov byte [ebp - 4], 0
cmp dword [ebp - 0x258], 8
jb 0x100040e6
push dword [ebp - 0x26c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x284]
mov edi, dword [ebp - 0x298]
add ebx, 0x18
jmp 0x10003dd1
push 0x208
lea eax, [ebp - 0x224]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10004669
mov esi, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
mov ebx, dword [ebp - 0x290]
cmp esi, edi
je 0x10004669
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.1000a9a0
mov byte [ebp - 4], 5
call fcn.10029aa0
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [ebp - 0x224], ax
jne 0x1000419e
xor ecx, ecx
jmp 0x100041b6
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100041a7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000aac0
push 7
push str.Tasks_
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.1000a7c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000a6c0
push 4
push str..job
lea ecx, [ebp - 0x23c]
call fcn.1000a7c0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100042ef
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100042ef
push 0x40
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1000427e
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.10010d80
mov ecx, eax
mov dword [ebp - 0x280], eax
jmp 0x10004286
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x274], ecx
test ecx, ecx
je 0x10004298
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x274]
cmp eax, ecx
jae 0x100042fd
mov edx, dword [ebx]
cmp edx, eax
ja 0x100042fd
sub eax, edx
sar eax, 2
mov dword [ebp - 0x284], eax
cmp ecx, dword [ebx + 8]
jne 0x100042c3
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebp - 0x284]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100042d9
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x298]
add dword [ebx + 4], 4
push eax
call fcn.10007320
cmp word [ebp - 0x224], 0
jne 0x1000431b
xor ecx, ecx
jmp 0x10004333
cmp ecx, dword [ebx + 8]
jne 0x1000430a
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100042d9
mov eax, dword [ebp - 0x280]
mov dword [ecx], eax
jmp 0x100042df
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004324
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000aac0
push 0x10
push str.System32Tasks_
lea ecx, [ebp - 0x23c]
call fcn.1000a7c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000a6c0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004456
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10004456
push 0x40
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x100043e5
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.10010d80
mov ecx, eax
mov dword [ebp - 0x280], eax
jmp 0x100043ed
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x278], ecx
test ecx, ecx
je 0x100043ff
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x278]
cmp eax, ecx
jae 0x10004464
mov edx, dword [ebx]
cmp edx, eax
ja 0x10004464
sub eax, edx
sar eax, 2
mov dword [ebp - 0x284], eax
cmp ecx, dword [ebx + 8]
jne 0x1000442a
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebp - 0x284]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10004440
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x298]
add dword [ebx + 4], 4
push eax
call fcn.10007320
cmp word [ebp - 0x224], 0
jne 0x10004482
xor ecx, ecx
jmp 0x1000449f
cmp ecx, dword [ebx + 8]
jne 0x10004471
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10004440
mov eax, dword [ebp - 0x280]
mov dword [ecx], eax
jmp 0x10004446
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
jmp 0x10004490
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004490
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000aac0
push 0x10
push str.SysWOW64Tasks_
lea ecx, [ebp - 0x23c]
call fcn.1000a7c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000a6c0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100045ca
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100045ca
push 0x40
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x10004551
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.10010d80
mov ecx, eax
mov dword [ebp - 0x280], eax
jmp 0x10004559
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x270], ecx
test ecx, ecx
je 0x1000456b
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x270]
cmp eax, ecx
jae 0x10004606
mov edx, dword [ebx]
cmp edx, eax
ja 0x10004606
sub eax, edx
sar eax, 2
mov dword [ebp - 0x284], eax
cmp ecx, dword [ebx + 8]
jne 0x1000459e
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebp - 0x284]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100045b4
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x298]
add dword [ebx + 4], 4
push eax
call fcn.10007320
cmp dword [ebp - 0x228], 8
jb 0x100045e2
push dword [ebp - 0x23c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x240], 8
jb 0x100045fe
push dword [ebp - 0x254]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
jmp 0x10004137
cmp ecx, dword [ebx + 8]
jne 0x10004613
push ecx
mov ecx, ebx
call fcn.1000ae60
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100045b4
mov eax, dword [ebp - 0x280]
mov dword [ecx], eax
jmp 0x100045ba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret 4