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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c6fc
mov eax, dword fs:[0]
push eax
mov eax, 0x1494
call fcn.100c4bf0
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 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 0x100b3140
nop
mov edx, dword [ebx]
xor ecx, ecx
mov edi, dword [ebx + 0xc]
test edx, edx
je 0x100b2fa3
mov eax, dword [edx]
test eax, eax
je 0x100b2fa3
mov ecx, dword [eax]
add edi, esi
xor eax, eax
test ecx, ecx
je 0x100b2fb3
mov ecx, dword [ecx]
test ecx, ecx
je 0x100b2fb3
mov eax, dword [ecx]
test eax, eax
je 0x100b2fb9
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 0x100b312a
xor eax, eax
test ebx, ebx
cmove edx, eax
xor ecx, ecx
test edx, edx
je 0x100b2ff6
mov eax, dword [edx]
test eax, eax
je 0x100b2ff6
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x100b3004
mov ecx, dword [ecx]
test ecx, ecx
je 0x100b3004
mov eax, dword [ecx]
test eax, eax
je 0x100b300a
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 0x100b30dc
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.100b3f50
push 8
push dword [edi + 0x20]
call fcn.100c459e
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 0x100b306c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x18]
cmp ecx, 0x10
jb 0x100b30a0
mov eax, dword [edi + 4]
inc ecx
cmp ecx, 0x1000
jb 0x100b3096
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b345c
mov eax, edx
push ecx
push eax
call fcn.100c459e
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 0x100b30cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x34
push edi
call fcn.100c459e
mov esi, dword [ebp - 0x147c]
add esp, 8
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x100b30ef
mov eax, dword [eax]
test eax, eax
je 0x100b30ef
mov ecx, dword [eax]
add edx, esi
xor eax, eax
test ecx, ecx
je 0x100b30ff
mov ecx, dword [ecx]
test ecx, ecx
je 0x100b30ff
mov eax, dword [ecx]
test eax, eax
jne 0x100b3107
xor esi, esi
jmp 0x100b3109
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 0x100b2f90
mov ecx, ebx
call fcn.100b3eb0
lea eax, [ebp - 0x1460]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x148d]
call fcn.100b1da0
push eax
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 0x100b3436
mov dword [ebp - 0x1480], 0
mov dword [ebp - 0x1484], 0
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b3452
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 0x100b31e0
movzx eax, ax
lea ecx, [ebp - 0x147c]
push eax
call fcn.10008a30
jmp 0x100b3212
lea ecx, [ebp - 0x1460]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b31f0
sub ecx, edx
lea eax, [ebp - 0x1460]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x147c]
call fcn.1000b940
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.100aaa40
add esp, 0xc
test eax, eax
je 0x100b3417
mov eax, dword [ebp - 0x1480]
test eax, eax
je 0x100b3417
cmp dword [ebp - 0x1484], 0
je 0x100b3417
push eax
call fcn.10097680
mov edi, eax
add esp, 4
mov dword [ebp - 0x148c], edi
test edi, edi
je 0x100b3409
mov dword [ebp - 0x14a0], edi
push str.errno
lea ecx, [ebp - 0x1478]
mov byte [ebp - 4], 3
call fcn.10007a50
push 0xffffffffffffffff
lea eax, [ebp - 0x1478]
mov byte [ebp - 4], 4
push eax
push edi
call fcn.100988c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1478]
mov edi, eax
call fcn.10007e60
test edi, edi
jne 0x100b33fb
push str.data
push dword [ebp - 0x148c]
call fcn.100975c0
add esp, 8
mov dword [ebp - 0x1488], eax
test eax, eax
je 0x100b33fb
push eax
call fcn.100975a0
add esp, 4
mov dword [ebp - 0x149c], eax
test eax, eax
jle 0x100b33fb
mov esi, dword [ebp - 0x1488]
nop dword [eax]
push edi
push esi
call fcn.10097580
add esp, 8
mov dword [ebp - 0x1498], eax
test eax, eax
je 0x100b33e8
push eax
call fcn.100b21a0
add esp, 4
mov dword [ebp - 0x1488], eax
test eax, eax
je 0x100b33e8
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
lea eax, [edx + ecx]
test al, 3
jne 0x100b3353
lea eax, [edx + 4]
shr eax, 2
cmp dword [ebx + 8], eax
ja 0x100b3353
push 1
mov ecx, ebx
call fcn.100b3d10
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 - 0x1494], 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 0x100b33b3
push 0x10
call fcn.100c456e
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 - 0x1494]
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 - 0x1498]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x10]
call fcn.100975c0
add esp, 8
test eax, eax
je 0x100b33e8
mov ecx, dword [ebp - 0x1488]
push eax
call fcn.100b3480
inc edi
cmp edi, dword [ebp - 0x149c]
jl 0x100b3300
mov esi, dword [ebp - 0x147c]
push dword [ebp - 0x148c]
call fcn.10097510
add esp, 4
push dword [ebp - 0x1480]
call fcn.100c49a1
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 0x100b3436
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.100c495f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008520
call fcn.100e9c89
int3