Function at 0x402ab0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b8b7
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x495014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x49595c]
mov edi, dword [ebp + 8]
test eax, eax
je 0x402c04
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x179], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402b1b
cmp dword [ecx + 0x58], 2
jb 0x402b1b
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x402c04
test eax, eax
je 0x402c04
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xa
push 0x481bc8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00403d00
push 0x4c
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
push 2
call fcn.00407900
cmp dword [ebp - 0x180], 1
jbe 0x402ba8
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402be9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40365a
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00403ae0
mov dword [ebp - 4], 6
mov word [ebp - 0xf8], 0
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
lea edx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x110]
call fcn.00405420
test al, al
jne 0x402e40
mov eax, dword [0x49595c]
test eax, eax
je 0x4035c3
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x179], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402d5e
cmp dword [ecx + 0x58], 2
jb 0x402d5e
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x4035c3
test eax, eax
je 0x4035c3
mov byte [ebp - 4], 0xe
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xc
push 0x481c38
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.00403d00
push 0x51
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
push 2
call fcn.00407900
cmp dword [ebp - 0x180], 1
jbe 0x402de5
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402e23
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402e19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40365f
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xd
jmp 0x4035c3
push 0x40
lea eax, [ebp - 0x178]
push 0
push eax
call fcn.0044de20
add esp, 0xc
mov dword [ebp - 0x178], 0x40
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x118], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xdc]
call fcn.004186a0
test al, al
je 0x402ef9
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
je 0x402ef9
push dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0x410
call esi
test eax, eax
jne 0x402ee9
mov eax, dword [ebp - 0x34]
push dword [eax]
push 0
push 0x400
call esi
test eax, eax
je 0x402ef9
push 0x28
lea ecx, [ebp - 0x138]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
push dword [ebp - 0x12c]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
push str.TotalPhys___I64u__AvailPhys___I64u__WorkingSetSize___lu
push eax
call fcn.00416120
add esp, 0x1c
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
push 0x12
push str.QncCrashReport.exe
mov word [ebp - 0x28], ax
call fcn.00403d00
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x19
call fcn.0041a260
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
push ecx
mov edx, eax
lea ecx, [ebp - 0x1b8]
call fcn.00419f30
add esp, 4
mov esi, eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0x1b
cmp eax, esi
je 0x402fc1
mov ecx, eax
call fcn.004039d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x94], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x84], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x1a4]
cmp edx, 8
jb 0x403005
mov ecx, dword [ebp - 0x1b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ffb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403664
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 7
mov word [ebp - 0x1b8], ax
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x18c]
cmp edx, 8
jb 0x403066
mov ecx, dword [ebp - 0x1a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40305c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403669
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
mov byte [ebp - 4], 0x24
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4030c1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40366e
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x28
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 0x29
cmp dword [edi], 2
jne 0x403116
lea eax, [edi + 0x34]
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x403116
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40310a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403d00
mov byte [ebp - 4], 0x2a
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 0x2b
mov edx, esi
lea ecx, [ebp - 0x1a0]
call fcn.00417540
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
lea edx, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x38], 8
cmovae edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
jb 0x403178
mov esi, dword [esi]
cmp dword [ebp - 0x98], 8
lea edi, [ebp - 0xac]
lea ecx, [ebp - 0xc4]
cmovae edi, dword [ebp - 0xac]
cmp dword [ebp - 0xb0], 8
cmovae ecx, dword [ebp - 0xc4]
cmp dword [ebp - 0xc8], 8
mov dword [ebp - 0x188], ecx
lea ecx, [ebp - 0xdc]
cmovae ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x184], ecx
mov ecx, dword [ebp - 0x180]
cmp dword [ecx + 0x14], 8
jb 0x4031ce
mov ecx, dword [ecx]
push eax
push edx
push esi
push edi
push dword [ebp - 0x188]
xor eax, eax
cmp byte [ebp - 0xf7], 1
push dword [ebp - 0x184]
sete al
push eax
xor eax, eax
cmp byte [ebp - 0xf8], 1
sete al
push eax
push ecx
lea eax, [ebp - 0x64]
push str.__crashid_s___reportwnd_d___restart_d___exename_s___exepath__s____param__s____dump__s____fulldump__s____externinfo__s_
push eax
call fcn.00416120
add esp, 0x2c
mov byte [ebp - 4], 0x2d
mov edx, dword [ebp - 0x18c]
cmp edx, 8
jb 0x40324e
mov ecx, dword [ebp - 0x1a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403244
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403673
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
mov byte [ebp - 4], 0x2b
lea edx, [ebp - 0x64]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x184]
push eax
push ecx
lea ecx, [ebp - 0x94]
call fcn.0041a610
add esp, 8
test al, al
mov eax, dword [0x49595c]
je 0x4033b2
test eax, eax
je 0x4034c8
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x179], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x4032d1
cmp dword [ecx + 0x58], 2
jb 0x4032d1
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x4034c8
test eax, eax
je 0x4034c8
mov byte [ebp - 4], 0x31
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xb
push 0x481df8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x32
call fcn.00403d00
push 0x8b
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
push 2
call fcn.00407900
cmp dword [ebp - 0x180], 1
jbe 0x40335b
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov byte [ebp - 4], 0x33
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x403399
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40338f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403678
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4034c4
test eax, eax
je 0x4034c8
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x179], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x4033e8
cmp dword [ecx + 0x58], 2
jb 0x4033e8
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x4034c8
test eax, eax
je 0x4034c8
mov byte [ebp - 4], 0x37
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xb
push 0x481e10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x38
call fcn.00403d00
push 0x8f
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
push 2
call fcn.00407900
cmp dword [ebp - 0x180], 1
jbe 0x403472
lea eax, [ebp - 0x28]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov byte [ebp - 4], 0x39
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4034b0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40367d
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 0x3d
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x403506
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403682
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 0x41
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x403558
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40354e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403687
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4035c3
mov eax, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x4035a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40368c
push edx
push ecx
call fcn.00436e80
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
call fcn.004036a0
mov dword [ebp - 4], 0x45
mov edx, dword [ebp - 0xfc]
cmp edx, 8
jb 0x403619
mov ecx, dword [ebp - 0x110]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40360f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403691
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436e3f
mov esp, ebp
pop ebp
ret 4
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
int3