Function at 0x10031030
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x102258ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x10031258
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x1003109f
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x10031091
mov eax, dword [0x1022eb3c]
mov esi, dword [eax]
cmp esi, eax
je 0x10031258
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x10]
test eax, eax
jne 0x1003127f
cmp ecx, 7
jne 0x10031207
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x20], 0x61004d
mov word [ebp - 0x650], ax
lea ecx, [ebp - 0x650]
push 0xd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x740073
push eax
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 7
call fcn.1001e830
cmp dword [ebp - 0x63c], 8
lea eax, [ebp - 0x650]
cmovae eax, dword [ebp - 0x650]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x63c]
cmp edx, 8
jb 0x100311f3
mov ecx, dword [ebp - 0x650]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100311e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031292
push edx
push ecx
call fcn.101454bc
add esp, 8
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
jne 0x1003126b
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10031234
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10031230
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10031230
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10031220
mov esi, eax
jmp 0x1003124c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1003124c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10031240
cmp esi, dword [0x1022eb3c]
jne 0x100310c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101454ca
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101454ca
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101454ca
mov esp, ebp
pop ebp
ret
call fcn.1018b109
int3