Function at 0x402a10
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469057
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x492014]
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 [0x49295c]
mov edi, dword [ebp + 8]
test eax, eax
je 0x402b64
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x179], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402a7b
cmp dword [ecx + 0x58], 2
jb 0x402a7b
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x402b64
test eax, eax
je 0x402b64
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 0x47ebb8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00403c60
push 0x4c
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
push 2
call fcn.00407500
cmp dword [ebp - 0x180], 1
jbe 0x402b08
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
call fcn.00407810
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402b49
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035ba
push edx
push ecx
call fcn.00434612
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.00403a40
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.00405030
test al, al
jne 0x402da0
mov eax, dword [0x49295c]
test eax, eax
je 0x403523
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x179], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402cbe
cmp dword [ecx + 0x58], 2
jb 0x402cbe
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x403523
test eax, eax
je 0x403523
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 0x47ec28
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.00403c60
push 0x51
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
push 2
call fcn.00407500
cmp dword [ebp - 0x180], 1
jbe 0x402d45
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
call fcn.00407810
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402d83
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bf
push edx
push ecx
call fcn.00434612
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 0x403523
push 0x40
lea eax, [ebp - 0x178]
push 0
push eax
call fcn.0044b5b0
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.004167c0
test al, al
je 0x402e59
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
je 0x402e59
push dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0x410
call esi
test eax, eax
jne 0x402e49
mov eax, dword [ebp - 0x34]
push dword [eax]
push 0
push 0x400
call esi
test eax, eax
je 0x402e59
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.00414390
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.00403c60
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x19
call fcn.00418380
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
push ecx
mov edx, eax
lea ecx, [ebp - 0x1b8]
call fcn.00418050
add esp, 4
mov esi, eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0x1b
cmp eax, esi
je 0x402f21
mov ecx, eax
call fcn.00403930
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 0x402f65
mov ecx, dword [ebp - 0x1b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c4
push edx
push ecx
call fcn.00434612
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 0x402fc6
mov ecx, dword [ebp - 0x1a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c9
push edx
push ecx
call fcn.00434612
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 0x403021
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403017
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035ce
push edx
push ecx
call fcn.00434612
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 0x403076
lea eax, [edi + 0x34]
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x403076
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40306a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403c60
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.00415660
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 0x4030d8
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 0x40312e
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.00414390
add esp, 0x2c
mov byte [ebp - 4], 0x2d
mov edx, dword [ebp - 0x18c]
cmp edx, 8
jb 0x4031ae
mov ecx, dword [ebp - 0x1a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035d3
push edx
push ecx
call fcn.00434612
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.00418730
add esp, 8
test al, al
mov eax, dword [0x49295c]
je 0x403312
test eax, eax
je 0x403428
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x179], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x403231
cmp dword [ecx + 0x58], 2
jb 0x403231
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x403428
test eax, eax
je 0x403428
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 0x47ede8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x32
call fcn.00403c60
push 0x8b
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
push 2
call fcn.00407500
cmp dword [ebp - 0x180], 1
jbe 0x4032bb
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
call fcn.00407810
mov byte [ebp - 4], 0x33
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4032f9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4032ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035d8
push edx
push ecx
call fcn.00434612
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x403424
test eax, eax
je 0x403428
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x179], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x403348
cmp dword [ecx + 0x58], 2
jb 0x403348
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x179], 0
mov dword [ebp - 0x180], eax
je 0x403428
test eax, eax
je 0x403428
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 0x47ee00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x38
call fcn.00403c60
push 0x8f
push str.RC::RCCrashService::OnGenerateDumpCompleted
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
push 2
call fcn.00407500
cmp dword [ebp - 0x180], 1
jbe 0x4033d2
lea eax, [ebp - 0x28]
mov ecx, 0x492958
push eax
call fcn.00407810
mov byte [ebp - 4], 0x39
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x403410
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403406
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035dd
push edx
push ecx
call fcn.00434612
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 0x403466
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40345c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035e2
push edx
push ecx
call fcn.00434612
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 0x4034b8
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035e7
push edx
push ecx
call fcn.00434612
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 0x403523
mov eax, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x403504
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035ec
push edx
push ecx
call fcn.00434612
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.00403600
mov dword [ebp - 4], 0x45
mov edx, dword [ebp - 0xfc]
cmp edx, 8
jb 0x403579
mov ecx, dword [ebp - 0x110]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40356f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035f1
push edx
push ecx
call fcn.00434612
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.004345d1
mov esp, ebp
pop ebp
ret 4
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
int3