Function at 0x100076f0
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x414
mov dl, byte [0x10064414]
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jge 0x10007784
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
mov edi, dword [esp + 0x430]
mov byte [esp + ecx + 0xb], 0
cmp edi, 1
jne 0x100077bb
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
lea ecx, [esp + 0xc]
push str.spnserv.dat
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call esi
push str.spnserv.dat
jmp 0x100077e4
cmp edi, 2
jne 0x100077f6
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
lea ecx, [esp + 0xc]
push str.spserv.dat
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call esi
push str.spserv.dat
lea eax, [esp + 0x124]
push 0x1005e754
push eax
call esi
add esp, 0x1c
cmp dword [esp + 0x42c], 2
jne 0x100078e2
mov ebx, dword [esp + 0x428]
push 0
push 2
push 2
push ebx
push 3
lea ecx, [esp + 0x228]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x424]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100078b9
cmp eax, 0xffffffff
je 0x100078b9
lea edi, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1000786a
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x110]
push eax
push 0x400
push 0
push 4
push ebx
push ecx
mov dword [esi + 4], 0x400
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x10007917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
cmp edi, 1
jne 0x100078cd
push str.Unable_to_service_standalone_clients._Please_restart_the_server_and_try_again._n
push 0
call fcn.100062c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
lea eax, [esp + 0x110]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, dword [esp + 0x424]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x10007917
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi], eax
jne 0x10007953
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0xc]
push eax
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x414
ret