Function at 0x402356
Capabilities:
Get memory capacity
Terminate process

Disassembly:
jmp 0x4464e0
sub esp, 0xb0
push ebx
mov eax, 0x20
push ebp
push esi
mov dword [esp + 0x20], eax
mov esi, ecx
lea eax, [esp + 0x20]
push edi
xor ebx, ebx
xor ecx, ecx
push eax
mov dword [esi + 0x5f8], ebx
mov dword [esi + 0x614], ebx
mov dword [esi + 0x618], 0x21
lea edi, [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x528]
mov eax, dword [esi + 0x524]
mov edi, dword [esi + 0xb4]
mov ebp, dword [esi + 0x94]
mov dword [esp + 0x1c], edx
shr ecx, 0x14
inc ecx
lea edx, [esp + 0x20]
mov dword [esi + 0x614], ecx
mov ecx, dword [esi + 0x520]
push ebx
push edx
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
jne 0x4465cb
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [0x5469b0], eax
push edx
mov ecx, dword [eax]
push 0x5298f0
push eax
call dword [ecx]
mov eax, edi
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
mov edx, dword [ecx]
and al, 0xf7
add eax, 0x11
or ah, 8
push eax
push ebp
push ecx
call dword [edx + 0x50]
test eax, eax
jne 0x4465c1
cmp edi, ebx
jne 0x4465bb
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push ebx
push ebx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call dword [ecx + 0x54]
mov eax, dword [esp + 0x10]
jmp 0x4465cd
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x4465db
push 1
call fcn.0050fcc5
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0x524]
push edx
mov edx, dword [esi + 0x520]
push ecx
push edx
push eax
call fcn.00401fc8
add esp, 0x10
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x446607
push 1
call fcn.0050fcc5
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
mov edx, dword [esi + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x524]
mov eax, dword [esi + 0x520]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [edx]
mov ebp, 0x7c
push ecx
push edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], 7
mov dword [esp + 0xbc], 0x2840
call dword [eax + 0x18]
cmp eax, ebx
je 0x446665
push eax
call fcn.00401e65
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x446677
push 1
call fcn.0050fcc5
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [esi + 0xc]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x4c], ebp
call dword [eax + 0x58]
mov eax, dword [esp + 0xa0]
mov edi, 1
cmp eax, 0x3e0
je 0x4466d1
cmp eax, 0x7e0
je 0x4466cd
sub eax, 0xff00
neg eax
sbb eax, eax
and al, 0xfd
add eax, 2
jmp 0x4466d3
mov eax, edi
jmp 0x4466d3
xor eax, eax
mov dword [esi + 0x52c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x534], eax
mov eax, dword [esi + 0xd4]
cmp eax, ebx
push 0x532768
je 0x4466fb
push str..game.cfg
jmp 0x446700
push str.game.cfg
call fcn.0050fc85
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x446793
mov eax, 0x3f800000
mov dword [esi + 0x578], edi
mov dword [esi + 0x57c], edi
mov dword [esi + 0x580], edi
mov dword [esi + 0x584], ebx
mov dword [esi + 0x588], ebx
mov dword [esi + 0x58c], edi
mov dword [esi + 0x590], edi
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
mov dword [esi + 0x5ac], eax
mov dword [esi + 0x5b0], edi
mov dword [esi + 0x5b4], ebx
mov dword [esi + 0x5b8], ebx
mov dword [esi + 0x5bc], edi
mov dword [esi + 0x5a0], ebx
mov dword [esi + 0x594], edi
mov dword [esi + 0x598], edi
mov dword [esi + 0x59c], edi
call fcn.00401d57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
push ebp
call fcn.004013ac
add esp, 4
cmp eax, 0x95
je 0x446831
mov eax, 0x3f800000
mov dword [esi + 0x578], edi
mov dword [esi + 0x57c], edi
mov dword [esi + 0x580], edi
mov dword [esi + 0x584], ebx
mov dword [esi + 0x588], ebx
mov dword [esi + 0x58c], edi
mov dword [esi + 0x590], edi
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
mov dword [esi + 0x5ac], eax
mov dword [esi + 0x5b0], edi
mov dword [esi + 0x5b4], ebx
mov dword [esi + 0x5b8], ebx
mov dword [esi + 0x5bc], edi
mov dword [esi + 0x5a0], ebx
mov dword [esi + 0x594], edi
mov dword [esi + 0x598], edi
mov dword [esi + 0x59c], edi
call fcn.00401d57
push ebp
call fcn.0050fbd7
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
push ebp
lea ecx, [esi + 0x578]
call fcn.004034a4
push ebp
call fcn.00402ab3
add esp, 4
push ebp
call fcn.0050fbd7
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret