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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082f8c
mov eax, dword fs:[0]
push eax
mov eax, 0x1490
call fcn.1001ac20
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 eax, ecx
mov dword [ebp - 0x148c], eax
xor esi, esi
lea ebx, [eax + 0x3c]
mov dword [ebp - 0x147c], esi
cmp dword [ebx + 0x10], esi
jbe 0x10039180
nop
mov edx, dword [ebx]
xor ecx, ecx
mov edi, dword [ebx + 0xc]
test edx, edx
je 0x10038fe3
mov eax, dword [edx]
test eax, eax
je 0x10038fe3
mov ecx, dword [eax]
add edi, esi
xor eax, eax
test ecx, ecx
je 0x10038ff3
mov ecx, dword [ecx]
test ecx, ecx
je 0x10038ff3
mov eax, dword [ecx]
test eax, eax
je 0x10038ff9
mov eax, dword [eax]
mov ecx, edi
and edi, 3
shr ecx, 2
mov dword [ebp - 0x1480], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1480]
mov eax, dword [eax + ecx*4]
cmp dword [eax + edi*4], 0
je 0x1003916a
xor eax, eax
test ebx, ebx
cmove edx, eax
xor ecx, ecx
test edx, edx
je 0x10039036
mov eax, dword [edx]
test eax, eax
je 0x10039036
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x10039044
mov ecx, dword [ecx]
test ecx, ecx
je 0x10039044
mov eax, dword [ecx]
test eax, eax
je 0x1003904a
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1480]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + edi*4]
test edi, edi
je 0x1003911c
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.1003a030
push 8
push dword [edi + 0x20]
call fcn.1001a759
mov dword [edi + 0x20], 0
or esi, 0xffffffff
mov edx, dword [edi + 0x1c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100390ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x18]
cmp ecx, 0x10
jb 0x100390e0
mov eax, dword [edi + 4]
inc ecx
cmp ecx, 0x1000
jb 0x100390d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100394ac
mov eax, edx
push ecx
push eax
call fcn.1001a759
add esp, 8
mov dword [edi + 0x14], 0
mov eax, esi
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003910b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x34
push edi
call fcn.1001a759
mov esi, dword [ebp - 0x147c]
add esp, 8
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x1003912f
mov eax, dword [eax]
test eax, eax
je 0x1003912f
mov ecx, dword [eax]
add edx, esi
xor eax, eax
test ecx, ecx
je 0x1003913f
mov ecx, dword [ecx]
test ecx, ecx
je 0x1003913f
mov eax, dword [ecx]
test eax, eax
jne 0x10039147
xor esi, esi
jmp 0x10039149
mov esi, dword [eax]
mov ecx, dword [esi + 8]
mov eax, edx
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x147c]
and edx, 3
mov eax, dword [eax + ecx*4]
mov dword [eax + edx*4], 0
mov eax, dword [ebp - 0x148c]
inc esi
mov dword [ebp - 0x147c], esi
cmp esi, dword [eax + 0x4c]
jb 0x10038fd0
mov ecx, ebx
call fcn.10039f90
lea eax, [ebp - 0x1460]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x104
lea eax, [ebp - 0x1460]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.utilsgroupinfo.dat
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10039486
mov dword [ebp - 0x1480], 0
mov dword [ebp - 0x1484], 0
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x100394a2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x147c], eax
lea eax, [ebp - 0x1460]
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x1003923a
movzx eax, ax
lea ecx, [ebp - 0x147c]
push eax
call fcn.100336b0
jmp 0x10039265
lea ecx, [ebp - 0x1460]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039243
sub ecx, edx
lea eax, [ebp - 0x1460]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x147c]
call fcn.10007190
mov esi, dword [ebp - 0x147c]
lea eax, [ebp - 0x1484]
push eax
lea eax, [ebp - 0x1480]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.10039730
add esp, 0xc
test eax, eax
je 0x10039467
mov eax, dword [ebp - 0x1480]
test eax, eax
je 0x10039467
cmp dword [ebp - 0x1484], 0
je 0x10039467
push eax
call fcn.1002c840
mov edi, eax
add esp, 4
mov dword [ebp - 0x148c], edi
test edi, edi
je 0x10039459
mov dword [ebp - 0x149c], edi
push str.errno
lea ecx, [ebp - 0x1478]
mov byte [ebp - 4], 3
call fcn.1001bfe8
push 0xffffffffffffffff
lea eax, [ebp - 0x1478]
mov byte [ebp - 4], 4
push eax
push edi
call fcn.1002d8e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1478]
mov edi, eax
call fcn.10006680
test edi, edi
jne 0x1003944b
push str.data
push dword [ebp - 0x148c]
call fcn.1002c780
add esp, 8
mov dword [ebp - 0x1488], eax
test eax, eax
je 0x1003944b
push eax
call fcn.1002c760
add esp, 4
mov dword [ebp - 0x1498], eax
test eax, eax
jle 0x1003944b
mov esi, dword [ebp - 0x1488]
nop dword [eax]
push edi
push esi
call fcn.1002c740
add esp, 8
mov dword [ebp - 0x1494], eax
test eax, eax
je 0x10039438
push eax
call fcn.100381b0
add esp, 4
mov dword [ebp - 0x1488], eax
test eax, eax
je 0x10039438
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
lea eax, [edx + ecx]
test al, 3
jne 0x100393a3
lea eax, [edx + 4]
shr eax, 2
cmp dword [ebx + 8], eax
ja 0x100393a3
push 1
mov ecx, ebx
call fcn.10039df0
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
lea eax, [eax*4 - 1]
and eax, ecx
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
add edx, eax
dec ecx
mov dword [ebp - 0x1490], edx
mov eax, edx
shr eax, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x1484], eax
cmp dword [eax + ecx], 0
jne 0x10039403
push 0x10
call fcn.1001a729
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, dword [ebp - 0x1484]
mov dword [edx + ecx], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x1490]
mov eax, dword [ebp - 0x1484]
mov eax, dword [eax + ecx]
and edx, 3
mov ecx, dword [ebp - 0x1488]
push str.hot_tag
push dword [ebp - 0x1494]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x10]
call fcn.1002c780
add esp, 8
test eax, eax
je 0x10039438
mov ecx, dword [ebp - 0x1488]
push eax
call fcn.100394d0
inc edi
cmp edi, dword [ebp - 0x1498]
jl 0x10039350
mov esi, dword [ebp - 0x147c]
push dword [ebp - 0x148c]
call fcn.1002c6d0
add esp, 4
push dword [ebp - 0x1480]
call fcn.1001a724
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10039486
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.10006e50
call fcn.1004906c
int3