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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x210], 0
mov al, byte [0x433df0]
mov byte [ebp - 0x104], al
lea edi, [ebp - 0x103]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x433df4]
mov byte [ebp - 0x208], al
lea edi, [ebp - 0x207]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x20c], 0
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040a820
add esp, 4
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov byte [ebp + eax - 0x105], 0
push str.spnserv.dat
lea eax, [ebp - 0x104]
push eax
push 0x433df8
lea eax, [ebp - 0x208]
push eax
call fcn.0040ab00
add esp, 0x10
cmp dword [ebp + 0x10], 2
jne 0x4205ed
push 0
push 2
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x420515
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x42053a
push str.Unable_to_service_standalone_clients._Please_restart_the_server_and_try_again._n
push 0
call fcn.0041b96e
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
mov eax, 1
jmp 0x42067d
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x420578
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42067d
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x400
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
push str.spnserv.dat
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push 4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x4205e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42067d
jmp 0x420625
push str.spnserv.dat
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x420625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
mov eax, 1
jmp 0x42067d
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x420672
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42067d
mov eax, dword [ebp - 0x210]
jmp 0x42067d
pop edi
pop esi
pop ebx
leave
ret