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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0xc34]
push ebx
push eax
mov esi, ecx
call fcn.10056120
push 0x208
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.10056120
push 0x208
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.10056120
push 0x208
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.10056120
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10056120
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10056120
add esp, 0x48
lea eax, [ebp - 0xc34]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0xc34]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10030f90
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.1005632d
add esp, 8
test eax, eax
jne 0x10030fd4
mov ecx, esi
call fcn.10030970
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10032035
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov word [eax], cx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x826], ax
test ax, ax
jne 0x10030fe0
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10031001
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x10180600]
mov dword [ecx + 4], eax
mov eax, dword [0x10180604]
mov dword [ecx + 8], eax
mov ax, word [0x10180608]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x824]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, ebx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc38], eax
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10031052
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10031073
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10180610]
mov dword [ecx + 4], eax
mov eax, dword [0x10180614]
mov dword [ecx + 8], eax
mov eax, dword [0x10180618]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1018061c]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x61c]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, ebx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc3c], eax
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa2e], ax
test ax, ax
jne 0x100310c3
lea ecx, [ebp - 0xa2c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100310e4
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10180624]
mov dword [ecx + 4], eax
mov eax, dword [0x10180628]
mov dword [ecx + 8], eax
mov eax, dword [0x1018062c]
mov dword [ecx + 0xc], eax
mov ax, word [0x10180630]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xa2c]
push eax
call edi
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0xc38]
test eax, eax
je 0x100311f2
mov eax, dword [ebp - 0xc3c]
test eax, eax
je 0x100311f2
test ebx, ebx
je 0x100311f2
push str.Something
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x10180634
push eax
call fcn.10029df0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1003118c
lea eax, [ebp - 0x20c]
push eax
call fcn.100424db
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x100311b9
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [esi + 0x1c]
call fcn.1001fe10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10032035
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100311c2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x1c]
call fcn.1001fe10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10032035
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10030970
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret