Function at 0x45daa0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb670
push 0x481850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff7c0
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0
push 0x80000080
push 4
push 0
push 1
push 0x40000000
push 0x4e93d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
jne 0x45db10
mov eax, dword [ebp + 8]
push eax
call fcn.0045e0b0
add esp, 4
jmp 0x45e025
push 2
push 0
push 0
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov word [ebp - 0x164], 0
xor edx, edx
mov dword [ebp - 0x162], edx
mov dword [ebp - 0x15e], edx
mov dword [ebp - 0x15a], edx
mov word [ebp - 0x156], dx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4e94d8]
push ecx
movzx edx, word [ebp - 0x158]
push edx
movzx eax, word [ebp - 0x15a]
push eax
movzx ecx, word [ebp - 0x15c]
push ecx
movzx edx, word [ebp - 0x15e]
push edx
movzx eax, word [ebp - 0x162]
push eax
movzx ecx, word [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x__d___04d__02d__02d__02d:_02d:_02d__exception__d_r_n
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0x2c
mov dword [ebp - 0x43c], str.Unknown
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov ecx, 0xb3
lea edi, [ebp - 0x438]
rep movsd dword es:[edi], dword [esi]
push 0x1c
lea ecx, [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45dc16
push 0x104
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x45dc16
lea edx, [ebp - 0x128]
push edx
call fcn.0045cfa0
add esp, 4
mov dword [ebp - 0x43c], eax
push 0x4e94f4
call fcn.004803f5
add esp, 4
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 0x168]
mov eax, dword [ecx + 0x14]
cdq
mov ecx, 0x64
idiv ecx
push edx
push 0x4cb2a0
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0x20
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e300
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x37c]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
push ecx
call fcn.0045e400
add esp, 4
push eax
push str._s_in_module__s_at__04x:_08x._r_n
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0x18
mov eax, dword [ebp - 0x150]
cmp dword [eax], 0xc0000005
jne 0x45dd53
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x10], 2
jb 0x45dd53
mov dword [ebp - 0x45c], str.Read_from
mov edx, dword [ebp - 0x150]
cmp dword [edx + 0x14], 0
je 0x45dd12
mov dword [ebp - 0x45c], str.Write_to
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
push str._s_location__08x_caused_an_access_violation._r_n
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x848]
push ecx
push 0x4cb334
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0xc
push 0x4cb338
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e040
add esp, 8
push str.Registers:_r_n
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0045e040
add esp, 8
mov edx, dword [ebp - 0x378]
push edx
mov eax, dword [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x37c]
push ecx
mov edx, dword [ebp - 0x388]
push edx
push 0x4cb34c
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e040
add esp, 0x18
mov ecx, dword [ebp - 0x384]
push ecx
mov edx, dword [ebp - 0x374]
push edx
mov eax, dword [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x394]
push ecx
push 0x4cb374
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0x18
mov eax, dword [ebp - 0x3a8]
push eax
mov ecx, dword [ebp - 0x398]
push ecx
mov edx, dword [ebp - 0x3a0]
push edx
mov eax, dword [ebp - 0x38c]
push eax
push 0x4cb39c
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0045e040
add esp, 0x18
mov edx, dword [ebp - 0x3ac]
push edx
mov eax, dword [ebp - 0x39c]
push eax
mov ecx, dword [ebp - 0x3a4]
push ecx
mov edx, dword [ebp - 0x390]
push edx
push 0x4cb3c0
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e040
add esp, 0x18
push str._r_nBytes_at_CS:EIP:_r_n
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0045e040
add esp, 8
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x84c], 0
jmp 0x45de76
mov eax, dword [ebp - 0x84c]
add eax, 1
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0x10
jge 0x45ded9
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x154]
add ecx, dword [ebp - 0x84c]
movzx edx, byte [ecx]
push edx
push 0x4cb3fc
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e040
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x45ded7
jmp 0x45de67
push str._r_n_r_nStack_dump:_r_n
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 8
mov eax, dword [ebp - 0x374]
and al, 0xe0
mov dword [0x4e92bc], eax
mov eax, dword fs:[4]
mov dword [0x4e92b8], eax
mov ecx, dword [0x4e92b8]
and ecx, 0xffffffe0
mov dword [0x4e92b8], ecx
mov edx, dword [0x4e92bc]
add edx, 0xa0
push edx
mov eax, dword [0x4e92bc]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0045e5e0
add esp, 0xc
push 0x4cb41c
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4c19c4]
test eax, eax
je 0x45dfb1
call dword [0x4c19cc]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x850]
and eax, 0x16
cmp eax, 0x14
je 0x45df8c
mov ecx, dword [ebp - 0x850]
and ecx, 0xfffffffd
or ecx, 0x14
push ecx
call dword [0x4c19c8]
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e760
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4c19d0]
jmp 0x45dfc7
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045ea40
add esp, 8
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045e160
add esp, 4
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [0x4e9560]
push ecx
push str.Memory:_total_d__phys_d__virtual_d
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045e040
add esp, 0x14
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045e0b0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret