Function at 0x1003af70
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e0
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x1dc], eax
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x1017fe54
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1003bb83
mov edx, dword [esp + 0x30]
test edx, edx
je 0x1003bb83
mov ecx, edx
mov dword [esp + 0x130], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 7
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003afe0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x138]
call fcn.10051fd0
push 0x25
push str.MicrosoftWindowsLogs___SystemLogs
lea ecx, [esp + 0x138]
call fcn.100520e0
mov esi, eax
mov dword [esp + 0x178], 0
push 0x18
lea eax, [esp + 0x17c]
mov dword [esp + 0x18c], 0
push esi
push eax
mov dword [esp + 0x198], 0
call fcn.1011b630
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
mov edx, dword [esp + 0x144]
cmp edx, 8
jb 0x1003b09b
mov ecx, dword [esp + 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b091
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
push dword [esp + 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [esp + 0x18c], 8
lea eax, [esp + 0x178]
push dword [esp + 0x188]
cmovae eax, dword [esp + 0x17c]
lea ecx, [esp + 0x164]
push eax
mov dword [esp + 0x168], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 7
call fcn.10051fd0
cmp dword [esp + 0x174], 8
lea ecx, [esp + 0x1c0]
push 0xffffffffffffffff
push 3
lea eax, [esp + 0x168]
mov dword [esp + 0x18], 0
cmovae eax, dword [esp + 0x168]
push ecx
push eax
call fcn.10103e53
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x18], eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.10025600
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x1003b152
cmp eax, 1
je 0x1003b152
cmp eax, 9
jne 0x1003bb9c
mov edx, dword [esp + 0x174]
cmp eax, 3
setne al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x1003b1a2
mov ecx, dword [esp + 0x160]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b194
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bbae
push edx
push ecx
call fcn.1011a823
mov al, byte [esp + 0x17]
add esp, 8
test al, al
jne 0x1003bb45
cmp dword [esp + 0x18c], 8
lea eax, [esp + 0x178]
push dword [esp + 0x188]
cmovae eax, dword [esp + 0x17c]
lea ecx, [esp + 0x134]
push eax
mov dword [esp + 0x138], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 7
call fcn.10051fd0
push ecx
lea edx, [esp + 0x134]
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], 0
call fcn.10059800
add esp, 4
test eax, eax
jne 0x1003bbb3
mov edx, dword [esp + 0x144]
cmp edx, 8
jb 0x1003b264
mov ecx, dword [esp + 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b25a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bbc7
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edi, dword [esp + 0x44]
test edi, edi
je 0x1003b270
lock inc dword [edi + 4]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
test edi, edi
je 0x1003b2b0
lea ecx, [edi + 4]
lock inc dword [ecx]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x1003b2b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1003b2b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
nop word [eax + eax]
test esi, esi
je 0x1003baf2
push 4
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x134]
push str..log
push dword [esp + 0x58]
call fcn.10060cc0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x20]
add esp, 0xc
cmp dword [esi + 0x34], 8
jb 0x1003b2e6
mov ecx, dword [esi + 0x20]
lea edi, [ecx + eax*2]
mov edx, edi
call fcn.100248f0
mov edx, eax
mov ecx, edx
cmp edx, edi
je 0x1003b33d
cmp word [ecx], 0x3a
je 0x1003b305
add ecx, 2
cmp ecx, edi
jne 0x1003b2f8
cmp edx, ecx
je 0x1003b33d
lea eax, [ecx - 2]
cmp edx, eax
je 0x1003b33d
cmp word [eax], 0x2e
lea edi, [eax - 2]
jne 0x1003b325
cmp edx, edi
jne 0x1003b33f
cmp word [edi], 0x2e
jne 0x1003b33f
jmp 0x1003b33d
mov eax, edi
cmp edx, eax
je 0x1003b33d
nop dword [eax + eax]
cmp word [eax], 0x2e
je 0x1003b33f
sub eax, 2
cmp edx, eax
jne 0x1003b330
mov eax, ecx
sub ecx, eax
mov dword [esp + 0x148], 0
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x150]
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 7
call fcn.10051fd0
cmp dword [esp + 0x144], 8
lea eax, [esp + 0x130]
push dword [esp + 0x140]
cmovae eax, dword [esp + 0x134]
lea ecx, [esp + 0x14c]
push eax
call fcn.10024b20
mov edx, dword [esp + 0x15c]
test eax, eax
setne byte [esp + 0xf]
cmp edx, 8
jb 0x1003b3e6
mov ecx, dword [esp + 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b3dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x144]
xor eax, eax
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 7
mov word [esp + 0x148], ax
cmp edx, 8
jb 0x1003b448
mov ecx, dword [esp + 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b43e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
cmp byte [esp + 0xf], 0
jne 0x1003bad4
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x1003b45f
mov eax, dword [esi + 0x20]
sub esp, 0xc
lea ecx, [esp + 0x84]
push eax
call fcn.10054730
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x78], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x74], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x84], 6
jne 0x1003bacb
mov eax, dword [esp + eax + 0xb0]
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 0
test eax, eax
push dword [esp + 0x54]
mov word [esp + 0x70], 1
sete byte [esp + 0x78]
push dword [esp + 0x70]
mov byte [esp + 0x7d], 0
push 0
push dword [esp + 0x80]
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.1005f040
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, edx
mov dword [esp + 0x38], edx
push eax
push 0
push edx
call fcn.1011cd50
add esp, 0xc
mov esi, edi
test eax, eax
cmovne esi, eax
cmp esi, edi
je 0x1003b541
lea eax, [esi + 1]
cmp eax, edi
je 0x1003b52f
mov cl, byte [eax]
test cl, cl
je 0x1003b52a
mov byte [esi], cl
inc esi
inc eax
cmp eax, edi
jne 0x1003b521
cmp esi, edi
je 0x1003b541
push 0
push edi
push esi
call fcn.1011b630
add esp, 0xc
mov edi, esi
mov esi, dword [esp + 0x38]
push ecx
push edi
push esi
lea ecx, [esp + 0x16c]
call fcn.10059990
cmp dword [esp + 0x170], 0
jne 0x1003b5ef
mov edx, dword [esp + 0x174]
cmp edx, 0x10
jb 0x1003b59e
mov ecx, dword [esp + 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b594
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0xf
mov byte [esp + 0x160], 0
test esi, esi
je 0x1003bacb
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1003b5e8
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push ecx
push esi
jmp 0x1003baab
push ecx
lea edx, [esp + 0x164]
lea ecx, [esp + 0x14]
call fcn.100238b0
mov eax, dword [esp + 0x18]
add esp, 4
mov edi, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
cmp edi, eax
je 0x1003b9b1
nop word [eax + eax]
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
mov edx, dword [eax + 0x30]
jb 0x1003b633
mov ecx, dword [eax + 0x20]
lea esi, [ecx + edx*2]
mov edx, esi
call fcn.100248f0
sub esi, eax
mov dword [esp + 0x130], 0
sar esi, 1
lea ecx, [esp + 0x130]
push esi
push eax
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 7
call fcn.10051fd0
cmp dword [esp + 0x144], 8
lea eax, [esp + 0x130]
mov esi, dword [esp + 0x140]
cmovae eax, dword [esp + 0x130]
mov dword [esp + 0x34], eax
call fcn.1010397f
mov dword [esp + 0x60], eax
mov dword [esp + 0x148], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0xf
test esi, esi
je 0x1003b72b
cmp esi, 0x7fffffff
ja 0x1003bbd3
push 0
push 0
push esi
push dword [esp + 0x40]
push eax
call fcn.101039d0
mov dword [esp + 0x58], eax
test edx, edx
jne 0x1003bbcc
push edx
push eax
lea ecx, [esp + 0x150]
call fcn.100527f0
push dword [esp + 0x58]
cmp dword [esp + 0x160], 0x10
lea ecx, [esp + 0x14c]
cmovae ecx, dword [esp + 0x14c]
push ecx
push esi
push dword [esp + 0x40]
push dword [esp + 0x70]
call fcn.101039d0
mov dword [esp + 0x60], eax
test edx, edx
jne 0x1003bbcc
lea eax, [esp + 0x148]
mov edx, str.64888745865648564log
push eax
lea ecx, [esp + 0x1c4]
call fcn.10059a70
add esp, 4
mov ecx, eax
push 0x10190658
call fcn.100529a0
mov esi, eax
mov dword [esp + 0x190], 0
push 0x18
lea eax, [esp + 0x194]
mov dword [esp + 0x1a4], 0
push esi
push eax
mov dword [esp + 0x1b0], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea ecx, [esp + 0x190]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push edi
call fcn.10052a70
mov esi, eax
mov dword [esp + 0x1a8], 0
push 0x18
lea eax, [esp + 0x1ac]
mov dword [esp + 0x1bc], 0
push esi
push eax
mov dword [esp + 0x1c8], 0
call fcn.1011b630
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x1a4]
cmp edx, 0x10
jb 0x1003b82a
mov ecx, dword [esp + 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b820
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x1d4]
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0xf
mov byte [esp + 0x190], 0
cmp edx, 0x10
jb 0x1003b884
mov ecx, dword [esp + 0x1c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b87a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x1d0], 0
mov dword [esp + 0x1d4], 0xf
mov byte [esp + 0x1c0], 0
cmp edx, 0x10
jb 0x1003b8de
mov ecx, dword [esp + 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b8d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x144]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0xf
mov byte [esp + 0x148], 0
cmp edx, 8
jb 0x1003b93e
mov ecx, dword [esp + 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov esi, dword [0x101aba00]
lea eax, [esp + 0x1a8]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10052c90
mov ecx, esi
call fcn.10023aa0
mov edx, dword [esp + 0x1d4]
add esp, 0x18
cmp edx, 0x10
jb 0x1003b99c
mov ecx, dword [esp + 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b992
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
add edi, 0x18
cmp edi, dword [esp + 0x5c]
jne 0x1003b620
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1003ba23
push ecx
mov edx, eax
mov ecx, edi
call fcn.1005c1b0
mov ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x14]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1003ba01
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push ecx
push esi
call fcn.1011a823
add esp, 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x174]
cmp edx, 0x10
jb 0x1003ba5f
mov ecx, dword [esp + 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003ba55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x38]
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0xf
mov byte [esp + 0x160], 0
test edx, edx
je 0x1003bacb
mov ecx, dword [esp + 0x2c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1003baa9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bb97
push ecx
push edx
call fcn.1011a823
mov dword [esp + 0x34], 0
add esp, 8
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x78]
call fcn.10039600
lea ecx, [esp + 0x48]
call fcn.10025720
test eax, eax
jne 0x1003bbd8
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], esi
jmp 0x1003b2b0
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x1003bb1c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003bb1c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003bb1c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esp + 0x44]
test edi, edi
je 0x1003bb45
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003bb45
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003bb45
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [esp + 0x18c]
cmp edx, 8
jb 0x1003bb83
mov ecx, dword [esp + 0x178]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003bb79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bbdf
push edx
push ecx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
lea eax, [esp + 0x160]
mov ecx, str.status
push eax
call fcn.100254d0
call fcn.10125fc5
lea ecx, [esp + 0x130]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.100254d0
call fcn.10125fc5
mov ecx, edx
call fcn.100247c0
call fcn.10021700
mov edx, eax
call fcn.10025400
call fcn.10125fc5
int3