Function at 0x407fd0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4a031e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4da22c]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da22c]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, ecx
or ebp, 0xffffffff
call fcn.00435370
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb0], eax
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0xb0]
push 0x210
mov dword [eax + 4], 0x407e70
call fcn.00479967
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18c], ebx
je 0x408058
mov ecx, eax
call fcn.00434110
jmp 0x40805a
xor eax, eax
push ebx
mov dword [esp + 0x190], ebp
mov dword [esi + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esi + 0x11c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00435370
mov ecx, eax
call fcn.00435200
mov edi, dword [esi + 0x11c]
mov ecx, dword [edi]
push ecx
call fcn.00407d40
add esp, 4
test eax, eax
je 0x4080ff
cmp dword [edi + 0xc], ebx
jne 0x4080da
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
push eax
push ecx
push str._d._d_d
lea edx, [esi + 0x104]
push 0x10
push edx
call fcn.00434330
add esp, 0x18
jmp 0x4080ff
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
push str._d._d_d._d
lea ecx, [esi + 0x104]
push 0x10
push ecx
call fcn.00434330
add esp, 0x1c
push 0xfa0
call fcn.00435370
mov ecx, eax
call fcn.004341b0
test eax, eax
je 0x4084ee
call fcn.00407df0
mov ecx, dword [esi + 0xb0]
call fcn.00434fc0
test eax, eax
je 0x40817e
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x4c]
mov dword [esi + 0xb4], eax
mov eax, dword [eax + 0x2c]
add eax, 0xffffffff
cmp eax, 1
ja 0x40817e
mov dword [esi + 0xfc], 1
mov eax, dword [0x4dc278]
mov dword [eax + 0x210], ebx
mov ecx, dword [0x4dc278]
mov dword [ecx + 0x214], ebx
mov edx, dword [0x4dc278]
mov dword [edx + 0x21c], ebx
mov eax, dword [0x4dc278]
mov dword [eax + 0x220], ebx
push 0x7d0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0xb8]
call fcn.004209b0
call fcn.00407df0
mov edx, dword [0x4dc278]
cmp dword [edx + 0x210], ebx
je 0x4081de
mov ecx, dword [esi + 0xb0]
call fcn.00434ba0
test eax, eax
je 0x4081de
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x34]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x4dc278]
mov edx, dword [ecx + 0x228]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc0]
call fcn.0043cc50
call fcn.00407df0
mov eax, dword [0x4dc278]
cmp dword [eax + 0x214], ebx
je 0x40820e
mov ecx, dword [esi + 0xb0]
call fcn.00434c50
test eax, eax
je 0x40820e
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x38]
mov dword [esi + 0xd4], edx
call fcn.00407df0
mov ecx, dword [esi + 0xb0]
call fcn.00434e60
test eax, eax
je 0x40827f
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x3c]
mov dword [esi + 0xbc], ecx
call fcn.00435370
cmp dword [eax + 0x38], ebx
je 0x408248
call fcn.00435370
mov edx, dword [eax + 0x38]
mov edi, dword [edx + 0x10]
jmp 0x40824a
xor edi, edi
cmp edi, ebx
je 0x40827f
call fcn.00435370
mov ecx, eax
call fcn.00434b60
mov edx, dword [edi]
push ebx
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
fldz
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40827d
fsub qword [edi + 0x10]
fabs
fstp qword [0x4dc138]
jmp 0x40827f
fstp st(0)
call fcn.00407df0
mov ecx, dword [0x4dc278]
cmp dword [ecx + 0x218], ebx
je 0x4082f2
mov ecx, dword [esi + 0xb0]
call fcn.00434db0
test eax, eax
je 0x4082f2
mov edx, dword [esi + 0xb0]
mov ecx, dword [edx + 0x48]
cmp ecx, ebx
mov dword [esi + 0xd0], ecx
je 0x4082f2
push 2
call fcn.00477640
cmp eax, ebx
je 0x4082f2
push eax
call fcn.00403da0
mov edi, eax
mov eax, dword [edi + 0xc]
add esp, 4
cmp byte [eax], bl
je 0x4082f2
mov ecx, dword [esi + 0xb0]
push eax
call fcn.004340c0
mov ecx, dword [esi + 0xb0]
mov ebp, eax
mov eax, dword [edi + 0xc]
push eax
call fcn.00434090
mov edi, eax
jmp 0x4082f6
mov edi, dword [esp + 0x18]
call fcn.00407df0
mov ecx, dword [esi + 0xb0]
call fcn.00434d00
test eax, eax
je 0x408319
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x44]
mov dword [esi + 0xc4], edx
call fcn.00407df0
mov eax, dword [0x4dc278]
cmp dword [eax + 0x21c], ebx
je 0x408377
mov ecx, dword [esi + 0xb0]
call fcn.00434f10
test eax, eax
je 0x408377
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x40]
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
mov dword [esi + 0xc8], edx
je 0x408370
push ebx
call fcn.004398e0
cmp eax, ebx
je 0x408370
mov ecx, eax
call fcn.00436f70
sub eax, 0x1000805
je 0x408377
sub eax, 5
je 0x408377
mov ecx, esi
call fcn.00407e40
mov ecx, dword [esi + 0xb0]
call fcn.00435070
call fcn.00407df0
mov eax, dword [0x4dc278]
cmp dword [eax + 0x220], ebx
je 0x4083c4
mov ecx, dword [esi + 0xb0]
push edi
push ebp
call fcn.00435120
test eax, eax
je 0x4083c4
mov ecx, dword [esi + 0xb0]
push 0x80
call fcn.004351c0
push eax
call fcn.00403da0
add esp, 4
mov dword [esi + 0xd8], eax
mov ecx, dword [esi + 0xb8]
call fcn.00420a40
call fcn.00407df0
xor ebp, ebp
call fcn.00407df0
push str.GlobalMemoryStatusEx
push 0x4a7828
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
lea ecx, [esp + 0x20]
push ebx
push ecx
mov edi, eax
call fcn.004890c0
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x1c], 0x40
je 0x408449
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
je 0x408449
mov eax, dword [esp + 0x28]
fild dword [esp + 0x28]
test eax, eax
jge 0x40842d
fadd qword [0x4a7820]
mov ecx, dword [esp + 0x24]
fmul qword [0x4a7820]
test ecx, ecx
fild dword [esp + 0x24]
jge 0x408445
fadd qword [0x4a7820]
faddp st(1)
jmp 0x408466
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [esp + 0x64]
mov eax, dword [esp + 0x64]
test eax, eax
jge 0x408466
fadd qword [0x4a7820]
fmul qword [0x4a7818]
fadd qword [str.ffffff]
call fcn.00488e00
test al, 1
je 0x40847e
add eax, 1
mov ecx, dword [esi + 0xcc]
mov edx, dword [ecx + 4]
cmp edx, ebx
jle 0x4084b3
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 0xcc]
mov edi, dword [edx + 4]
add ecx, 0x180
lea ecx, [ecx]
mov edx, dword [ecx]
cmp edx, ebx
jle 0x4084a8
add ebp, edx
add ecx, 0x224
sub edi, 1
jne 0x4084a0
cmp ebp, eax
jle 0x4084bf
mov dword [esi + 0xdc], ebp
jmp 0x4084c5
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x4084db
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0xdc]
mov dword [eax + 8], ecx
call fcn.00435370
mov ecx, eax
call fcn.00433d40
mov eax, 1
jmp 0x4084f0
xor eax, eax
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.00488320
add esp, 0x17c
ret