Function at 0x1002435d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d48c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100243c7
lea eax, [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x100243b0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x100243c2
push 0x403
push 0x7d3
push 0
call dword [sym.imp.GDI32.dll_PtInRegion]
jmp 0x10024747
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10024445
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x10024440
push 0x2e8
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
jmp 0x10024747
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 0x741f
mov dword [ebp - 0x74], 0x10007f80
cmp dword [ebp - 0x38], 0x76b3
jle 0x1002453f
and dword [ebp - 0x20], 0
jmp 0x100244ca
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2aa0
jge 0x10024537
and dword [ebp - 0x24], 0
jmp 0x100244e0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4a4b
jge 0x10024535
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xdc]
call fcn.1000a6ce
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.1001679f
push eax
call fcn.10055f03
pop ecx
lea ecx, [ebp - 0xdc]
call fcn.10016781
jmp 0x100244d9
jmp 0x100244c3
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x44], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x7170
jge 0x1002455b
push dword [ebp - 0x74]
call fcn.10055f03
pop ecx
jmp 0x10024577
or dword [ebp - 4], 0xffffffff
jmp 0x10024581
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jl 0x100245e0
mov dword [ebp - 0x94], 1
jmp 0x100245e7
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
mov eax, dword [ebp - 0x28]
cmp dword [eax], 5
jne 0x1002460e
mov eax, 0x9e6a0122
test eax, eax
je 0x1002460e
mov dword [ebp - 0x30], 1
jmp 0x10024612
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jge 0x10024625
mov dword [ebp - 0x48], 1
jmp 0x10024629
and dword [ebp - 0x48], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
mov esi, eax
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
mov edi, dword [ebp - 0x48]
add edi, dword [eax]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
imul edi, dword [eax]
cmp dword [esi], edi
jl 0x10024664
mov dword [ebp - 0x40], 1
jmp 0x10024668
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0xffffffff
jl 0x10024677
mov dword [ebp - 0x50], 1
jmp 0x1002467b
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jg 0x1002468e
mov dword [ebp - 0x34], 1
jmp 0x10024692
and dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jle 0x100246ac
mov eax, 0x7fefb659
test eax, eax
jne 0x100246b9
push 0xfffffffffffffff8
pop eax
test eax, eax
jne 0x100246b9
and dword [ebp - 0x3c], 0
jmp 0x100246c0
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
sub esi, dword [eax]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10016b66
imul esi, dword [eax]
mov eax, dword [ebp - 0x44]
add esi, dword [eax]
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax]
jle 0x100246f0
mov dword [ebp - 0x9c], 1
jmp 0x100246f7
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx]
cmp eax, 0x41dbc46d
jl 0x1002471c
mov dword [ebp - 0x4c], 1
jmp 0x10024720
and dword [ebp - 0x4c], 0
mov eax, 0xc2285faa
sub eax, dword [ebp - 0x4c]
cmp eax, 0x4415
jge 0x10024738
mov dword [ebp - 0x54], 1
jmp 0x1002473c
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret