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

Disassembly:
sub esp, 0x418
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x424]
push 0x209
lea eax, [esp + 0x215]
push 0
push eax
mov byte [esp + 0x21c], 0
call sub.VCRUNTIME140.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.VCRUNTIME140.dll_memset
push 0x104
lea edx, [esp + 0x128]
push 0
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4033c0
sub eax, edx
cmp eax, 1
jge 0x4033ec
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x418
ret
push edi
mov edi, dword [esp + 0x434]
cmp edi, 1
mov byte [esp + eax + 0x10f], 0
jne 0x403427
push str.spnserv.dat
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call fcn.00410db0
push str.spnserv.dat
jmp 0x403450
cmp edi, 2
jne 0x403462
push str.spserv.dat
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x21c]
push str._s_s
push edx
call fcn.00410db0
push str.spserv.dat
lea eax, [esp + 0x20]
push 0x59403c
push eax
call fcn.00410db0
add esp, 0x1c
cmp dword [esp + 0x430], 2
jne 0x40353c
push 0
push 2
push 2
push ebp
push 3
push 0xc0000000
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x403505
cmp eax, 0xffffffff
je 0x403505
lea edi, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4034de
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x400
push 0
push 4
push ebp
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 0x403552
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 ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x418
ret
cmp edi, 1
jne 0x403519
push str.Unable_to_service_standalone_clients._Please_restart_the_server_and_try_again._n
push 0
call fcn.004022f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x418
ret
lea eax, [esp + 0xc]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0x10], eax
je 0x403519
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 0x40359c
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 ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x418
ret
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0052bfb9
add esp, 0x418
ret