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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b5ba
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x42c], 0
mov dword [esi + 0x34], eax
call fcn.100a91a0
push dword [ebp - 0x424]
lea edi, [esi + 8]
lea eax, [edi + 0x20]
push eax
push 0x10167b10
push section..data
push 0x1017453c
call fcn.1000e870
movzx ebx, ax
add esp, 0x14
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x424], ebx
test eax, eax
jne 0x100a834b
call fcn.100851e9
mov dword [edi + 0x14], eax
test eax, eax
jne 0x100a834b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esi + 0xb8]
lea ecx, [esi + 0x38]
push dword [esi + 0x2c]
call fcn.100b4030
call fcn.100a30a0
mov dword [esi + 0x88], eax
test eax, eax
je 0x100a82df
mov ecx, eax
call fcn.100a32b0
call fcn.100b0450
mov dword [esi + 0x8c], eax
test eax, eax
je 0x100a82f5
mov ecx, eax
call fcn.100b0550
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x425]
call fcn.100a5440
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100a860d
jmp 0x100a83e8
push 0
push 0
push eax
call fcn.100852eb
test bx, bx
je 0x100a82b8
lea ebx, [edi + 8]
test ebx, ebx
je 0x100a8617
test edi, edi
je 0x100a8617
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x10166004
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1016601c]
mov dword [ebx + 8], eax
push 0x10166004
mov dword [0x1016601c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x10166030]
mov eax, dword [0x10166038]
mov edx, dword [0x1016602c]
sub eax, ecx
push 0
push dword [0x10174540]
push 0
push 0
push eax
mov eax, dword [0x10166034]
sub eax, edx
push eax
mov eax, dword [ebp - 0x424]
push ecx
push edx
push SysReAllocString
push 0
movzx eax, ax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
jmp 0x100a82b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
push dword [esi + 0x2c]
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push str.loop._s.log
push eax
call fcn.100086f0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100e67c0
add esp, 0x18
mov edi, dword [ebp - 0x434]
mov byte [ebp - 4], 1
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x100a8443
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100a8459
call fcn.100088b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100a8623
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [edi - 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], 1
push edi
push 4
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x438]
push str.Log_
push eax
call fcn.1002f820
add esp, 0x14
mov esi, dword [ebp - 0x438]
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x100a84aa
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100a84c0
call fcn.100088b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100a862d
mov eax, dword [ecx]
call dword [eax + 0xc]
push 3
push 0x1013da44
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], 3
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.1002f820
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
add esp, 0x14
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esi - 0x10]
mov dword [ebp - 0x42c], 1
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a8535
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100a854d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [0x1018024c], eax
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100a8637
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push edi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x430]
push str._sLog_s
push eax
call fcn.100086f0
add esp, 0x10
lea eax, [ebp - 0x430]
mov ecx, 0x10180250
push eax
call fcn.10062840
mov edx, dword [ebp - 0x430]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a85ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [edi - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100a85ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c495f
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10008520
push 1
push 0xc0000005
call fcn.100100e0
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
int3