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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c048
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100d07a8]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], ebx
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x1000fcc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov eax, 0x100a65b8
mov dword [ebp - 4], 0
shr eax, 0x10
mov ecx, 0x100a65b8
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x1000f959
movzx eax, cx
lea ecx, [ebp - 0x234]
push eax
call fcn.10007b90
jmp 0x1000f96b
push 0
push 0x100a65b8
lea ecx, [ebp - 0x234]
call fcn.10003220
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.1005d680
mov edx, dword [0x100d32b4]
add esp, 4
mov edi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x1000f9ad
cmp dword [ecx + 0x10], edi
jge 0x1000f99a
mov ecx, dword [ecx + 8]
jmp 0x1000f99e
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1000f990
cmp eax, edx
je 0x1000f9ad
cmp edi, dword [eax + 0x10]
jge 0x1000f9af
mov eax, edx
cmp edx, eax
je 0x1000fa4c
cmp edi, 3
jne 0x1000fa1d
push dword [eax + 0x14]
lea eax, [ebp - 0x230]
push eax
call fcn.1000ffb0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 2
jb 0x1000f9dc
mov edx, dword [edx]
test edx, edx
jne 0x1000f9e4
xor ecx, ecx
jmp 0x1000f9ff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f9f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.10003220
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.100051b0
jmp 0x1000fa4c
mov edx, dword [eax + 0x14]
test edx, edx
jne 0x1000fa28
xor ecx, ecx
jmp 0x1000fa3f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fa30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.10003220
mov esi, dword [ebp - 0x234]
cmp dword [esi - 0xc], 0
jne 0x1000fac2
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x1000fcce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
cmp dword [ebp - 0x238], 0
mov ecx, ebx
mov byte [ebp - 4], 3
jne 0x1000fa90
mov eax, 0x100a65b8
movzx eax, ax
push eax
call fcn.10007b90
jmp 0x1000fa9c
push 0
push 0x100a65b8
call fcn.10003220
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000fabb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x1000fca8
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x1000fcd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov eax, str.config.ini
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
test eax, 0xffff0000
jne 0x1000fb00
movzx eax, ax
push eax
call fcn.10007b90
jmp 0x1000fb0c
push 0xa
push str.config.ini
call fcn.10003220
lea eax, [edi - 1]
mov byte [ebp - 4], 5
cmp eax, 8
ja case.0x1000fb1f.6
movzx eax, byte [eax + 0x1000fcf4]
jmp dword [eax*4 + 0x1000fcec]
push 3
push 0x100a7460
lea ecx, [ebp - 0x234]
call fcn.10003220
push 7
push str.lds.set
lea ecx, [ebp - 0x23c]
call fcn.10003220
mov esi, dword [ebp - 0x234]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10075650
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000fba9
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [ebp - 0x23c]
lea eax, [ebp - 0x218]
push edi
push eax
call ebx
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x1000fce2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x1000fbf8
movzx eax, ax
lea ecx, [ebp - 0x238]
push eax
call fcn.10007b90
jmp 0x1000fc23
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fc01
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.10003220
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0x244], eax
call fcn.10002ca0
mov ecx, dword [ebp - 0x240]
add eax, 0x10
mov edx, dword [ebp - 0x244]
or ebx, 0xffffffff
add esp, 4
mov byte [ebp - 4], 5
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000fc6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000fc86
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000fca2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x240]
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.1006a4da
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002c70
push 0x80004005
call fcn.10002c70
push 0x80004005
call fcn.10002c70
push 0x80004005
call fcn.10002c70
sti
add byte [eax], dl
push eax
sti
add byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add ah, cl
int3