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

Disassembly:
sub esp, 0x414
mov ecx, 0x40
mov dl, byte [0x4e75b4]
xor eax, eax
push esi
push ebx
push edi
mov byte [esp + 0xc], dl
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
mov ecx, 0x82
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x214], dl
lea edi, [esp + 0x215]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x110], dl
lea edi, [esp + 0x111]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, 0x41
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
lea edi, [esp + 0xc]
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
dec ecx
cmp ecx, 1
jge 0x47be54
mov eax, 1
pop edi
pop ebx
pop esi
sub esp, 0xfffffbec
ret
mov ebx, dword [esp + 0x430]
cmp ebx, 1
mov byte [esp + ecx + 0xb], 0
jne 0x47be88
lea ecx, [esp + 0xc]
push str.spnserv.dat
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call fcn.004a778b
push str.spnserv.dat
jmp 0x47beae
cmp ebx, 2
jne 0x47bec3
lea ecx, [esp + 0xc]
push str.spserv.dat
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call fcn.004a778b
push str.spserv.dat
lea eax, [esp + 0x124]
push 0x4e75ac
push eax
call fcn.004a778b
add esp, 0x1c
cmp dword [esp + 0x42c], 2
jne 0x47bfaf
mov esi, dword [esp + 0x428]
push 0
push 2
push 2
push esi
push 3
lea ecx, [esp + 0x228]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or eax, eax
mov edi, dword [esp + 0x424]
mov dword [edi + 0xc], eax
je 0x47bf86
cmp eax, 0xffffffff
je 0x47bf86
lea ebx, [edi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
jne 0x47bf37
mov edx, dword [edi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 1
sub esp, 0xfffffbec
ret
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x110]
push eax
push 0x400
push 0
push 4
push esi
push ecx
mov dword [edi + 4], 0x400
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
or eax, eax
mov dword [edi + 0x10], eax
jne 0x47bfe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebx
pop esi
sub esp, 0xfffffbec
ret
cmp ebx, 1
jne 0x47bf9a
push str.Unable_to_service_standalone_clients._Please_restart_the_server_and_try_again._n
push 0
call fcn.0047ae90
sub esp, 0xfffffff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov eax, 1
pop ebx
pop esi
add esp, 0x414
ret
lea eax, [esp + 0x110]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov edi, dword [esp + 0x424]
mov dword [edi + 0x10], eax
jne 0x47bfe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x414
ret
mov ecx, dword [edi + 0x10]
push 0
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
test eax, eax
jne 0x47c020
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x10]
push edx
call ebx
mov eax, dword [edi + 0xc]
push eax
call ebx
pop edi
pop ebx
pop esi
add esp, 0x414
mov eax, 1
ret
xor eax, eax
pop edi
pop ebx
pop esi
add esp, 0x414
ret