Function at 0x10037f9d
Capabilities:
Check os version
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100659e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10037fec
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
push 0x11ea
push 0xd4b
push dword [ebp - 0x108]
push 1
call fcn.100389a9
add esp, 0x10
jmp 0x1003899a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
push 4
lea ecx, [ebp - 0xec]
call fcn.100099bf
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xd4], 0xeeda5852
mov dword [ebp - 0x15c], 3
mov dword [ebp - 0x28], 0
jmp 0x1003803a
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x10038053
push dword [ebp - 0x28]
lea ecx, [ebp - 0xec]
call fcn.10009a26
or dword [eax], 0xffffffff
jmp 0x10038033
mov dword [ebp - 0x18], 3
jmp 0x10038063
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x100381fd
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x10c], 0x2415
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
cmp dword [eax], 0xfffffffd
je 0x1003809a
mov dword [ebp - 0x6c], 1
jmp 0x1003809e
and dword [ebp - 0x6c], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
cmp dword [eax], 0
jne 0x100380d6
cmp dword [ebp - 0xd4], 0
jne 0x100380d6
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
cmp dword [eax], 0
jne 0x100380d6
and dword [ebp - 0xa0], 0
jmp 0x100380e0
mov dword [ebp - 0xa0], 1
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [eax]
jne 0x10038104
mov dword [ebp - 0xdc], 1
jmp 0x1003810b
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xdc]
jge 0x10038125
mov dword [ebp - 0x9c], 1
jmp 0x1003812c
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x62d7bc35
jle 0x1003814a
mov dword [ebp - 0xa4], 1
jmp 0x10038151
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xa4]
jge 0x1003817b
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
cmp dword [eax], 0
je 0x1003817b
mov dword [ebp - 0xac], 1
jmp 0x10038182
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0xac]
jne 0x10038196
mov dword [ebp - 0x74], 1
jmp 0x1003819a
and dword [ebp - 0x74], 0
mov esi, dword [ebp - 0x10c]
imul esi, dword [ebp - 0x74]
push dword [ebp - 0x18]
lea ecx, [ebp - 0xec]
call fcn.10009a26
add esi, dword [eax]
je 0x100381e4
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x100381e2
push 0
push 0x264a
push 0x1cbe
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
jmp 0x100381f8
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x100381f8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x1003805c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.10009a21
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x118], eax
push 3
lea ecx, [ebp - 0xf8]
call fcn.100099bf
mov dword [ebp - 4], 1
push 3
lea ecx, [ebp - 0x104]
call fcn.100099bf
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0xc9b996a5
mov dword [ebp - 0x10], 0
jmp 0x10038254
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10038270
push dword [ebp - 0x10]
lea ecx, [ebp - 0xf8]
call fcn.10009a26
mov dword [eax], 0x2fd41e55
jmp 0x1003824d
mov dword [ebp - 0x10], 0
jmp 0x10038280
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10038293
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x38], 1
jmp 0x10038279
mov dword [ebp - 0x10], 0
jmp 0x100382a3
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x100382bf
push dword [ebp - 0x10]
lea ecx, [ebp - 0x104]
call fcn.10009a26
mov dword [eax], 0xba095a97
jmp 0x1003829c
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x38], 2
jmp 0x100382e4
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x38]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x38], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x38], 0
jl 0x10038659
mov dword [ebp - 0x48], 0x36be
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x38]
lea ecx, [ebp - 0xf8]
call fcn.10009a26
cmp dword [eax], 0
jne 0x10038339
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x38]
lea ecx, [ebp - 0xf8]
call fcn.10009a26
cmp dword [eax], 0
jne 0x10038339
and dword [ebp - 0xb4], 0
jmp 0x10038343
mov dword [ebp - 0xb4], 1
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x38]
lea ecx, [ebp - 0xf8]
call fcn.10009a26
xor eax, eax
jne 0x10038365
mov dword [ebp - 0x7c], 1
jmp 0x10038369
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0x7c]
jle 0x10038380
mov dword [ebp - 0xbc], 1
jmp 0x10038387
and dword [ebp - 0xbc], 0
push 2
lea ecx, [ebp - 0x104]
call fcn.10009a26
mov ecx, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffff
jb 0x100383b7
mov dword [ebp - 0x84], 1
jmp 0x100383be
and dword [ebp - 0x84], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x38], 0xfffffffa
jg 0x100383d7
mov dword [ebp - 0x124], 1
jmp 0x100383de
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x154], eax
push 2
lea ecx, [ebp - 0x104]
call fcn.10009a26
mov esi, eax
push 2
lea ecx, [ebp - 0xf8]
call fcn.10009a26
mov ecx, dword [esi]
sub ecx, dword [eax]
imul eax, ecx, 0xfffe
cmp dword [ebp - 0x84], eax
jle 0x1003842a
mov eax, 0x3d97
test eax, eax
je 0x1003842a
mov dword [ebp - 0xc4], 1
jmp 0x10038431
and dword [ebp - 0xc4], 0
push 2
lea ecx, [ebp - 0x104]
call fcn.10009a26
mov ecx, dword [ebp - 0xc4]
imul ecx, dword [eax]
test ecx, ecx
je 0x10038466
mov eax, 0xe3a4c638
test eax, eax
je 0x10038466
cmp dword [ebp - 0x3c], 0
je 0x10038466
mov dword [ebp - 0xcc], 1
jmp 0x1003846d
and dword [ebp - 0xcc], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x38]
cmp dword [ebp - 0xcc], eax
jl 0x1003848a
mov dword [ebp - 0x90], 1
jmp 0x10038491
and dword [ebp - 0x90], 0
xor eax, eax
sub eax, dword [ebp - 0x90]
cmp eax, 1
jae 0x100384b3
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x38]
lea ecx, [ebp - 0xf8]
call fcn.10009a26
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x158], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x38], 0
ja 0x100384d5
mov dword [ebp - 0xc0], 1
jmp 0x100384dc
and dword [ebp - 0xc0], 0
push 2
lea ecx, [ebp - 0x104]
call fcn.10009a26
mov ecx, dword [ebp - 0xc0]
cmp ecx, dword [eax]
jne 0x100384ff
mov dword [ebp - 0x98], 1
jmp 0x10038506
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
neg eax
je 0x1003863f
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x12c], 0x9c77e219
mov eax, 0xfff8
test eax, eax
je 0x1003862a
cmp dword [ebp - 0x24], 0
je 0x10038573
cmp dword [ebp - 0x24], 0
je 0x10038557
push 0xfffffffffffffffb
pop eax
test eax, eax
je 0x10038557
cmp dword [ebp - 0x24], 0
je 0x10038557
mov dword [ebp - 0xd8], 1
jmp 0x1003855e
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0x5bfeb1ec
jle 0x10038573
mov dword [ebp - 0x58], 1
jmp 0x10038577
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x58], eax
jl 0x1003858b
mov dword [ebp - 0xc8], 1
jmp 0x10038592
and dword [ebp - 0xc8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x38]
cmp eax, dword [ebp - 0xc8]
jne 0x100385b0
mov dword [ebp - 0xa8], 1
jmp 0x100385b7
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xc6f7
jl 0x100385cf
mov dword [ebp - 0xe0], 1
jmp 0x100385d6
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 5
jne 0x100385eb
mov dword [ebp - 0xb0], 1
jmp 0x100385f2
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xffffffff
jge 0x10038607
mov dword [ebp - 0xd0], 1
jmp 0x1003860e
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xd0]
xor ecx, ecx
sub ecx, eax
je 0x1003862a
mov dword [ebp - 0xb8], 1
jmp 0x10038631
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x12c], eax
jmp 0x10038654
mov dword [ebp - 0x120], 0xd911aca8
cmp dword [ebp - 0x120], 0
je 0x10038654
jmp 0x10038659
jmp 0x100382cf
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1003867b
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.10009a21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.10009a21
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x14], 0xfffffff9
mov dword [ebp - 0x140], 0xfe6e324
mov dword [ebp - 0x13c], 0xfe6e324
mov dword [ebp - 0x138], 0xfe6e324
mov dword [ebp - 0x134], 0xfe6e324
lea ecx, [ebp - 0x41]
call fcn.10009a35
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x164]
call fcn.10009a38
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x14c]
call fcn.100099fb
mov dword [ebp - 4], 3
mov dword [ebp - 0x150], 0xfffffffe
mov eax, dword [ebp - 0x14]
neg eax
je 0x1003877b
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x10038730
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov dword [ebp - 0x14], 0
jmp 0x10038740
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jg 0x10038776
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x10038760
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x10038774
push 0
call dword [sym.imp.USER32.dll_GetMenuItemCount]
jmp 0x10038739
jmp 0x1003897b
mov dword [ebp - 0x68], 0x9ec71cb2
mov dword [ebp - 0x14], 3
jmp 0x10038792
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x1003897b
push 1
lea ecx, [ebp - 0x54]
call fcn.100099bf
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 0
jmp 0x100387ba
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x100387d3
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
call fcn.10009a26
mov dword [eax], 0xb7928fbc
jmp 0x100387b3
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
and dword [eax], 0
jmp 0x10038803
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
cmp dword [eax], 3
jg 0x1003896a
mov dword [ebp - 0x5c], 0xfffffff6
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10038831
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10009a26
cmp dword [eax], 0
jl 0x1003884d
mov dword [ebp - 0x40], 1
jmp 0x10038851
and dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
cmp dword [ebp - 0x5c], 0x547507af
jg 0x10038870
mov dword [ebp - 0x8c], 1
jmp 0x10038877
and dword [ebp - 0x8c], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
mov eax, dword [eax]
cmp eax, dword [ebp - 0x8c]
jge 0x10038897
mov dword [ebp - 0x94], 1
jmp 0x1003889e
and dword [ebp - 0x94], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
push dword [eax]
lea ecx, [ebp - 0x14c]
call fcn.10009a26
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x94]
jne 0x100388d5
mov dword [ebp - 0x114], 1
jmp 0x100388dc
and dword [ebp - 0x114], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10009a26
cmp dword [ebp - 0x5c], 0x616d21b1
jge 0x100388f8
mov dword [ebp - 0x60], 1
jmp 0x100388fc
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x68]
jge 0x10038910
mov dword [ebp - 0x70], 1
jmp 0x10038914
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x70], eax
je 0x10038927
xor eax, eax
inc eax
jne 0x10038927
and dword [ebp - 0x78], 0
jmp 0x1003892e
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x78]
cmp eax, 9
jle 0x10038941
push 0xfffffffffffffffb
pop eax
test eax, eax
je 0x10038957
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x10038955
push 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10038965
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
jmp 0x100387e2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.10009a21
jmp 0x1003878b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.10009a21
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x128]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret