Function at 0x48eee0
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address
Set environment variable
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4ab1aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
mov eax, 0x461c4000
push edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x77], 1
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x6b], 1
mov dword [0x515cf8], ebx
push 0x10
mov byte [esi + 0x5a], bl
mov byte [esi + 0x59], 0xc
mov byte [esi + 0x5d], 1
mov byte [esi + 0x5b], 1
mov dword [esi + 0x62], 0x3c03126f
mov dword [esi + 0x66], ebx
mov byte [esi + 0x6a], bl
mov dword [esi + 0x7e], ebx
mov byte [esi + 0x6c], bl
mov dword [esi + 0x6e], eax
mov byte [esi + 0x79], bl
mov dword [esi + 0x7a], eax
mov dword [esi + 0x72], 0x428c0000
mov byte [esi + 0x76], bl
mov byte [esi + 0x5c], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.0049aa31
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x328], ebx
je 0x48ef99
mov ecx, eax
call fcn.00482bf0
jmp 0x48ef9b
xor eax, eax
or edi, 0xffffffff
push 0x320
mov dword [esp + 0x32c], edi
mov dword [esi + 0x3c], eax
call fcn.0049aa31
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x328], 1
je 0x48efd1
mov ecx, eax
call fcn.004809d0
jmp 0x48efd3
xor eax, eax
mov dword [esi + 0x38], eax
mov ecx, dword [0x4f5fbc]
push str.maxplayers
mov dword [esp + 0x32c], edi
call fcn.0048b5b0
cmp eax, 0x3e8
jle 0x48f009
mov ecx, dword [0x4f5fbc]
push 0x3e8
push str.maxplayers
call fcn.0048b5d0
mov ecx, dword [0x4f5fbc]
push str.bind
call fcn.0048b4d0
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x48f02d
cmp byte [edi], bl
jne 0x48f02d
mov dword [esp + 0x18], ebx
mov edi, ebx
mov ecx, dword [0x4f5fbc]
push str.port
call fcn.0048b5b0
mov ecx, dword [0x4f5fbc]
push str.maxplayers
mov ebp, eax
call fcn.0048b5b0
mov ecx, dword [0x4f5fbc]
push str.lanmode
mov dword [esp + 0x14], eax
call fcn.0048b5f0
movzx eax, al
mov dword [esp + 0x14], eax
call fcn.0044fad0
push eax
mov dword [esi + 0x40], eax
call fcn.00496d10
add esp, 4
call fcn.0044e9d0
mov ecx, esi
mov dword [0x515cfc], eax
call fcn.0048dbd0
push ebp
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.0046a7b0
mov eax, dword [0x4e5894]
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
add esp, 4
push edi
push ebp
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [edx + 4]
test al, al
jne 0x48f0e9
cmp edi, ebx
je 0x48f0d3
movzx ecx, bp
push ecx
push edi
push str.Unable_to_start_server_on__s:_d._Port_in_use_
call fcn.0048c8d0
add esp, 0xc
jmp 0x48f286
movzx edx, bp
push edx
push str.Unable_to_start_server_on_port:__d._Port_in_use_
call fcn.0048c8d0
add esp, 8
jmp 0x48f286
mov ecx, esi
call fcn.0048eae0
push ebx
mov ecx, esi
call fcn.0048dd50
test eax, eax
jne 0x48f11f
push str.I_couldnt_load_any_gamemode_scripts._Please_verify_your_server.cfg
call fcn.0048c8d0
push str.It_needs_a_gamemode0_line_at_the_very_least.
call fcn.0048c8d0
add esp, 8
call fcn.0049d507
push 1
call fcn.0049c092
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [0x4f5fbc]
push str.password
call fcn.0048b4d0
cmp eax, ebx
je 0x48f148
cmp byte [eax], bl
je 0x48f148
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
movzx eax, byte [esi + 0x59]
push ebx
push eax
lea ecx, [esp + 0x228]
push str._02d:_02d
push ecx
call fcn.00498e50
mov ecx, dword [0x4f5fbc]
add esp, 0x10
push ebx
lea edx, [esp + 0x224]
push edx
push 4
push str.worldtime
call fcn.0048c570
cmp dword [esp + 0x14], ebx
je 0x48f18b
mov dword [esi + 0x50], 1
lea eax, [esp + 0x20]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48f1a2
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x48f1bb
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], bl
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x48f1c0
mov ecx, dword [str.scriptfiles_]
mov edx, dword [0x4b9c0c]
mov eax, dword [0x4b9c10]
mov dword [edi], ecx
mov cl, byte [0x4b9c14]
mov dword [edi + 4], edx
lea edx, [esp + 0x20]
push edx
mov dword [edi + 8], eax
push str.AMXFILE
mov byte [edi + 0xc], cl
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x1034
call fcn.0049aa31
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x328], 2
je 0x48f223
mov ecx, eax
call fcn.0046a7c0
jmp 0x48f225
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
je 0x48f25d
cmp eax, ebx
mov eax, 0x4b1128
jne 0x48f242
mov eax, 0x4b9c04
push eax
movzx eax, word [esp + 0x14]
push eax
movzx edx, bp
push edx
push ecx
push str._nStarted_server_on__s:_d__with_maxplayers:__d_lanmode_is__s._n_n
call fcn.00498c2e
add esp, 0x14
jmp 0x48f283
cmp eax, ebx
mov eax, 0x4b1128
jne 0x48f26b
mov eax, 0x4b9c04
push eax
movzx eax, word [esp + 0x14]
movzx ecx, bp
push eax
push ecx
push str._nStarted_server_on_port:__d__with_maxplayers:__d_lanmode_is__s._n_n
call fcn.00498c2e
add esp, 0x10
mov dword [esi + 0x5e], ebx
mov ecx, dword [esp + 0x320]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x31c
ret