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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb5a2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10135134]
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 dword [ebp - 0x22c], edi
call fcn.100122e0
mov ecx, eax
test ecx, ecx
je 0x100b8209
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x10108fc0
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.1001dfe0
test al, al
jne 0x100b7cb1
push 0
push 0x10108fc0
lea ecx, [ebp - 0x224]
call fcn.1001f280
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.100b93d0
mov edx, dword [0x1013a14c]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x100b7cf3
cmp dword [ecx + 0x10], esi
jge 0x100b7ce0
mov ecx, dword [ecx + 8]
jmp 0x100b7ce4
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100b7cd6
cmp eax, edx
je 0x100b7cf3
cmp esi, dword [eax + 0x10]
jge 0x100b7cf5
mov eax, edx
cmp edx, eax
je 0x100b7d08
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.10020c70
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x100b7d7d
call fcn.100122e0
mov ecx, eax
test ecx, ecx
je 0x100b8213
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10108fc0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1001dfe0
test al, al
jne 0x100b7d4f
push 0
push 0x10108fc0
mov ecx, edi
call fcn.1001f280
mov esi, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100b81eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100b81eb
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.100abae0
add esi, 0xfffffffd
mov byte [ebp - 4], 3
cmp esi, 0x45
ja case.0x100b7da6.4
movzx eax, byte [esi + 0x100b824c]
jmp dword [eax*4 + 0x100b8228]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ab950
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100b4130
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8ea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100aa320
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8f60
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ae050
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8ea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100aa320
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8ea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100aa320
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8ea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100aa320
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100a8f60
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ae050
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.10020c70
lea ecx, [ebp - 0x220]
jmp 0x100b8095
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ac630
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.10020c70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100133e0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.100abae0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.10020c70
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.100133e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100c7670
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b80fc
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.100122e0
mov ecx, eax
test ecx, ecx
je 0x100b821d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x220]
call fcn.1001dfe0
test al, al
jne 0x100b8172
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b8150
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.1001f280
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x15
push ebx
call fcn.1001e030
add eax, 0x10
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100b81a8
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b81c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100b81eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.10027da5
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100139f0
push 0x80004005
call fcn.100139f0
push 0x80004005
call fcn.100139f0
nop
lodsd eax, dword [esi]
jge 269189686
adc byte [ebx], cl
jle 0x100b823a
adc byte [ecx + 0x7e], ch
or edx, dword [eax]
cmp dword [edi + 0xb], 0x10
or edx, dword [eax]
invalid
or edx, dword [eax]
and eax, 0x3c100b7f
or byte [ebx], 16
loope 0x100b82c5
or edx, dword [eax]
sahf
or byte [ebx], 16
add byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], al
add dword [edx], eax
add eax, dword [eax + 101058310]
pop es
pop es
pop es
int3