Function at 0x341f2284
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x343a7364
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x34234fcc]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi], 1
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x20]
mov dword [esp + 0x7c], edi
call fcn.341f2487
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x60]
push eax
call ebp
lea ebx, [esi + 0x84]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea ecx, [esi + 0xa8]
mov byte [esp + 0x7c], 2
mov dword [esi + 0x90], edi
call fcn.341f2505
lea eax, [esi + 0xb4]
push eax
call ebp
push 0x34
lea eax, [esi + 0xdc]
push edi
push eax
mov dword [esi + 0xd8], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi + 0x110], edi
mov ebp, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x80], 6
mov dword [esi + 0x90], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0x18], 3
mov dword [esi + 0x1c], edi
mov dword [esi + 0x80], edi
mov dword [esp + 0x34], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x54]
mov dword [esi + 0x7c], edi
cmp eax, ebp
je 0x341f2396
add dword [esi + 0x7c], ebp
mov ecx, dword [esi + 0x7c]
mov edx, ebp
shl edx, cl
cmp edx, eax
jne 0x341f2388
mov ecx, dword [esp + 0x38]
cmp ecx, 0x4000000
jbe 0x341f23a7
mov ecx, 0x4000000
mov eax, ecx
shr eax, 0xc
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0x100
cmp ecx, 0xc00000
jbe 0x341f23e5
add ecx, 0xff400000
shr ecx, 0xe
add ecx, 0x100
mov dword [esi + 0x98], ecx
cmp ecx, 0xe00
ja 0x342b65ff
add eax, 7
shr eax, 3
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [esi + 0x90], eax
cmp eax, edi
je 0x342b660e
mov ecx, dword [esi + 0x94]
add ecx, 7
shr ecx, 3
mov dword [ebx + 4], ecx
add ecx, ecx
mov dword [ebx], eax
mov edx, dword [ebx + 8]
add ecx, ecx
lea eax, [esp + 0x18]
add ecx, ecx
push eax
push ecx
mov ecx, ebx
call fcn.341f2518
mov eax, dword [esi + 0x94]
lea edx, [esp + 0x18]
push edx
push eax
xor edx, edx
mov ecx, ebx
call fcn.341f258b
test byte [esi + 0x48], 8
lea eax, [esi + 0x48]
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
jne 0x342b661d
test dword [esp + 0x18], 0xfffffffe
mov byte [esp + 0x7c], 5
jne 0x342b6656
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov dword [esi + 0x98], 0xe00
jmp 0x341f23e5
push ebp
push 0xfffffc0d
mov ecx, esi
call fcn.341f8dac
jmp 0x342b6625
push eax
mov ecx, esi
call fcn.3420b77d
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x342b6639
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esi + 0x78]
cmp eax, edi
je 0x341f245e
push 0x8000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x341f245e
lea ecx, [esp + 0x18]
call fcn.341ffba8
jmp 0x341f2471