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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008253a
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100a6250]
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 edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x428], 0
mov dword [edi + 0x34], eax
call fcn.10033860
push dword [ebp - 0x424]
lea esi, [edi + 8]
lea eax, [esi + 0x20]
push eax
push 0x100a6378
push 0x100a6048
push 0x100a9e38
call fcn.1000a2a0
movzx ebx, ax
add esp, 0x14
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x424], ebx
test eax, eax
jne 0x10032d0f
call fcn.1001ead7
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10032d0f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [edi + 0x2c]
lea ecx, [edi + 0x38]
call fcn.1003a110
call fcn.10036270
mov dword [edi + 0x88], eax
test eax, eax
je 0x10032c99
mov ecx, eax
call fcn.100362e0
call fcn.10036620
mov dword [edi + 0x8c], eax
test eax, eax
je 0x10032caf
mov ecx, eax
call fcn.10036720
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100456c0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call esi
push str.HaloWp
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10032fd1
jmp 0x10032dac
push 0
push 0
push eax
call fcn.1001ebd9
test bx, bx
je 0x10032c78
lea ebx, [esi + 8]
test ebx, ebx
je 0x10032fdb
test esi, esi
je 0x10032fdb
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x100a604c
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a6064]
mov dword [ebx + 8], eax
push 0x100a604c
mov dword [0x100a6064], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a6090]
mov eax, dword [0x100a6098]
mov edx, dword [0x100a608c]
sub eax, ecx
push 0
push dword [0x100a9e3c]
push 0
push 0
push eax
mov eax, dword [0x100a6094]
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 0x10032c78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push dword [edi + 0x2c]
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0
push str.loop._s.log
push eax
call fcn.10008f30
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100456c0
add esp, 0x18
mov edi, dword [ebp - 0x430]
mov byte [ebp - 4], 1
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x10032e07
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10032e1d
call fcn.10031f30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10032fe7
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [edi - 0xc]
add eax, 0x10
mov dword [ebp - 0x428], 1
push edi
push 4
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
push str.Log_
push eax
call fcn.10031cb0
add esp, 0x14
mov esi, dword [ebp - 0x434]
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x10032e6e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10032e84
call fcn.10031f30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10032ff1
mov eax, dword [ecx]
call dword [eax + 0xc]
push 3
push 0x1008dcec
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x428], 3
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.10031cb0
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 - 0x428], 1
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032ef9
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 0x10032f11
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 [0x100aa558], eax
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10032ffb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push edi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x42c]
push str._sLog_s
push eax
call fcn.10008f30
add esp, 0x10
lea eax, [ebp - 0x42c]
mov ecx, 0x100aa55c
push eax
call fcn.10040200
mov edx, dword [ebp - 0x42c]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032f92
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 0x10032fae
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.1001a767
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10006e50
push 1
push 0xc0000005
call fcn.100072f0
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
int3