Function at 0x47cb10
Capabilities:
Get common file path
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
push edi
je 0x47cb2c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x48]
mov dword [0x9ba9a4], esi
push ecx
mov dword [0x9baac4], eax
mov dword [esp + 0x4c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x9470bc
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x47cb71
push str.Couldnt_determine_current_directory
call fcn.0047c340
add esp, 4
mov edi, 0x9470bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x9470bb], 0x2f
jne 0x47cb9d
mov edi, 0x9470bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [ecx + 0x9470ba], al
mov eax, dword [0x4b0848]
mov edi, 1
mov dword [0x9baae0], eax
mov eax, dword [ebp + 0x10]
mov edx, edi
mov dword [esp + 0x30], 0x9470bc
mov cl, byte [eax]
mov dword [esp + 0x34], 0
test cl, cl
mov dword [esp + 0x38], edx
je 0x47cc1e
cmp edx, 0x32
jge 0x47cc1a
test cl, cl
je 0x47cbe6
cmp cl, 0x20
jle 0x47cbde
cmp cl, 0x7e
jle 0x47cbe6
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47cbd4
cmp byte [eax], 0
je 0x47cc14
mov dword [edx*4 + 0x9baae0], eax
mov cl, byte [eax]
inc edx
test cl, cl
je 0x47cc0b
cmp cl, 0x20
jle 0x47cc0b
cmp cl, 0x7e
jg 0x47cc0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47cbf9
cmp byte [eax], 0
je 0x47cc14
mov byte [eax], 0
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x47cbcb
mov dword [esp + 0x38], edx
push 0x9baae0
push edx
mov dword [esp + 0x44], 0x9baae0
call fcn.0040d910
mov ecx, dword [0xc375a4]
mov edx, dword [0xc375ac]
push str._dedicated
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call fcn.0040d730
neg eax
sbb eax, eax
push str._beta
neg eax
mov dword [0x9baba8], eax
call fcn.0040d730
add esp, 0x10
neg eax
sbb eax, eax
neg eax
mov dword [0xc3efe0], eax
mov eax, dword [0x9baba8]
test eax, eax
jne 0x47cd0a
push 0
push 0
push 0
push 0x6c
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x9baac0], eax
je 0x47cd0a
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x47cce2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax]
cmp ecx, edx
jle 0x47cce2
push 5
push 0
push 0
push eax
mov eax, dword [esp + 0x38]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, ecx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub eax, esi
push eax
mov eax, dword [0x9baac0]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x9baac0]
push 0xa
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x9baac0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x9baac0]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x54]
cmp eax, 0x880000
mov dword [esp + 0x44], eax
jge 0x47cd22
mov eax, 0x880000
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
shr ecx, 1
cmp eax, ecx
jae 0x47cd32
mov eax, ecx
mov dword [esp + 0x44], eax
cmp eax, 0x1000000
jle 0x47cd41
mov dword [esp + 0x44], 0x1000000
push 0x4b0a0c
call fcn.0040d730
add esp, 4
test eax, eax
je 0x47cd85
push str._heapsize
call fcn.0040d730
mov ecx, dword [0xc375a4]
add esp, 4
inc eax
cmp eax, ecx
jge 0x47cd85
mov ecx, dword [0xc375ac]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0040cc90
add esp, 4
shl eax, 0xa
mov dword [esp + 0x44], eax
jmp 0x47cd89
mov eax, dword [esp + 0x44]
mov ecx, dword [0x9ba998]
test ecx, ecx
je 0x47cda4
push str.damn
call fcn.0047c340
mov eax, dword [esp + 0x48]
add esp, 4
push eax
call fcn.0048c20c
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
jne 0x47cdc6
push str.Not_enough_memory_free__check_disk_space_n
call fcn.0047c340
mov eax, dword [esp + 0x44]
add esp, 4
mov ecx, dword [esp + 0x44]
push ecx
push eax
call fcn.0047bf10
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x9475cc], eax
jne 0x47cdf8
push str.Couldnt_create_event
call fcn.0047c340
add esp, 4
mov eax, dword [0x9baba8]
test eax, eax
je 0x47cee3
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x47ce1c
push str.Couldnt_create_dedicated_server_console
call fcn.0047c340
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov dword [0x9baac8], eax
call esi
push str._HFILE
mov dword [0x9babac], eax
call fcn.0040d730
add esp, 4
test eax, eax
jle 0x47ce65
cmp eax, dword [0xc375a4]
jge 0x47ce65
mov edx, dword [0xc375ac]
mov eax, dword [edx + eax*4 + 4]
push eax
call fcn.0040cc90
add esp, 4
mov dword [0x9470b4], eax
push str._HPARENT
call fcn.0040d730
add esp, 4
test eax, eax
jle 0x47ce96
cmp eax, dword [0xc375a4]
jge 0x47ce96
mov ecx, dword [0xc375ac]
mov edx, dword [ecx + eax*4 + 4]
push edx
call fcn.0040cc90
add esp, 4
mov dword [0x9475c8], eax
push str._HCHILD
call fcn.0040d730
add esp, 4
test eax, eax
jle 0x47cec7
cmp eax, dword [0xc375a4]
jge 0x47cec7
mov ecx, dword [0xc375ac]
mov edx, dword [ecx + eax*4 + 4]
push edx
call fcn.0040cc90
add esp, 4
mov dword [0x9470b0], eax
mov eax, dword [0x9470b0]
mov ecx, dword [0x9475c8]
mov edx, dword [0x9470b4]
push eax
push ecx
push edx
call fcn.0040ece0
add esp, 0xc
call fcn.0047c240
call fcn.00474df0
push str.Host_Init_n
call fcn.0047c530
lea eax, [esp + 0x34]
push eax
call fcn.0042a9d0
add esp, 8
call fcn.0047c5e0
fstp qword [esp + 0x18]
mov eax, dword [0x9baba8]
test eax, eax
je 0x47cf73
call fcn.0047c5e0
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fsub qword [esp + 0x18]
mov ecx, dword [0xa0c4a0]
fstp qword [esp + 8]
fld dword [ecx + 8]
fcomp qword [esp + 8]
fnstsw ax
test ah, 0x41
jne 0x47cfdc
call fcn.0047ca60
call fcn.0047c5e0
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fsub qword [esp + 0x18]
mov edx, dword [0xa0c4a0]
fstp qword [esp + 8]
fld dword [edx + 8]
fcomp qword [esp + 8]
fnstsw ax
test ah, 0x41
je 0x47cf43
jmp 0x47cfdc
mov eax, dword [0xc3b938]
mov ecx, dword [0x9ba98c]
test eax, eax
mov eax, dword [0x9ba9ac]
je 0x47cf8f
test eax, eax
jne 0x47cf8f
test ecx, ecx
je 0x47cfb7
mov edx, dword [0x9ba9a8]
test edx, edx
jne 0x47cfb7
mov edx, dword [0x9cc9e0]
test edx, edx
jne 0x47cfb7
test eax, eax
jne 0x47cfc7
test ecx, ecx
jne 0x47cfc7
push 0x14
call fcn.0047caf0
add esp, 4
jmp 0x47cfc7
push 0x32
call fcn.0047caf0
add esp, 4
mov dword [0x9cc9ec], edi
call fcn.0047c5e0
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fsub qword [esp + 0x18]
fstp qword [esp + 8]
fld qword [esp + 8]
push ecx
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fstp dword [esp]
call fcn.0042a380
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x47cf0d