Function at 0x40ae29
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.004b53e0
xor eax, eax
mov dword [ebp - 0x244], ebx
lea edi, [ebp - 0x240]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x244]
push eax
push ebx
xor edi, edi
push 0x30
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], ebx
inc edi
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x40aeba
push str._GetLastError_
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.004178df
pop ecx
pop ecx
mov dword [ebp - 0x224], 0xf
jmp 0x40afcc
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x244]
mov esi, dword [ebp - 0x238]
sub esi, dword [ebp - 0x240]
cmp eax, ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], esi
jne 0x40aeeb
xor eax, eax
inc eax
mov dword [ebp - 0x22c], eax
cmp esi, ebx
jne 0x40aef8
xor esi, esi
inc esi
mov dword [ebp - 0x224], esi
fild dword [ebp - 0x224]
xor ecx, ecx
cmp eax, esi
setle cl
fstp dword [ebp - 0x224]
fild dword [ebp - 0x22c]
fstp dword [ebp - 0x22c]
fld dword [ebp - 0x224]
fdiv dword [ebp - 0x22c]
dec ecx
and ecx, 0xfffffff9
add ecx, 0xe
mov dword [ebp - 0x230], ecx
fcomp qword [0x530ad0]
fnstsw ax
test ah, 5
jp 0x40af47
mov dword [ebp - 0x230], 1
fld dword [ebp - 0x224]
fmul qword [0x530ac8]
fadd qword [0x530ac0]
fld dword [ebp - 0x22c]
fdiv dword [ebp - 0x224]
fsubr qword [0x530ab8]
fimul dword [ebp - 0x230]
fsubp st(1)
call fcn.004cd8b6
cmp eax, 0xe
mov dword [ebp - 0x224], eax
jae 0x40af8a
inc eax
mov dword [ebp - 0x224], eax
push 9
pop ecx
cmp eax, ecx
jae 0x40af99
mov dword [ebp - 0x224], ecx
jmp 0x40afcc
push 0x1c
pop esi
cmp eax, esi
jbe 0x40afcc
push dword [ebp - 0x23c]
push dword [ebp - 0x238]
push dword [ebp - 0x244]
push dword [ebp - 0x240]
push eax
push str.:8:SetConsoleFont___encountered_a_problem:_the_calculated_font_height_is__ld_based_on_the_screen_rect___d__d__d__d_.__The_size_will_be_clipped_to_28.
call fcn.004178df
add esp, 0x18
mov dword [ebp - 0x224], esi
mov edx, dword [ebp - 0x234]
call fcn.0047c3ca
test eax, eax
je 0x40b2b7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
lea eax, [ebp - 0x220]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str..DEFAULTConsole
push reloc.WSOCK32.dll_closesocket
call esi
cmp eax, ebx
je 0x40b020
push eax
push str._GetLastError_
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004178df
add esp, 0xc
xor eax, eax
jmp 0x40b462
push ebx
lea eax, [ebp - 0x228]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Console
push closesocket
call esi
test eax, eax
je 0x40b047
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x220], ebx
je 0x40b43d
mov eax, dword [ebp - 0x224]
shl eax, 0x10
mov dword [ebp - 0x230], eax
mov esi, str.FontWeight
push ebx
push str.ColorTable00
push dword [ebp - 0x220]
call fcn.0040b5e2
add esp, 0xc
push 0x800000
push str.ColorTable01
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x8000
push str.ColorTable02
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x808000
push str.ColorTable03
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x80
push str.ColorTable04
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x800080
push str.ColorTable05
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x8080
push str.ColorTable06
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xc0c0c0
push str.ColorTable07
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x808080
push str.ColorTable08
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xff0000
push str.ColorTable09
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xff00
push str.ColorTable10
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xffff00
push str.ColorTable11
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xff
push str.ColorTable12
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xff00ff
push str.ColorTable13
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xffff
push str.ColorTable14
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xffffff
push str.ColorTable15
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
or edi, eax
lea eax, [ebp - 0x114]
push 0x4d65e4
push eax
call fcn.004b4780
lea eax, [ebp - 0x114]
push eax
call fcn.004b4450
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push str.FaceName
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x40b257
push eax
push str._GetLastError_
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.004178df
add esp, 0xc
push 0x19
push str.CursorSize
push dword [ebp - 0x220]
call fcn.0040b5e2
add esp, 0xc
push 0x36
push str.FontFamily
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push dword [ebp - 0x230]
or edi, eax
push str.FontSize
push dword [ebp - 0x220]
call fcn.0040b5e2
add esp, 0xc
or edi, eax
cmp dword [ebp - 0x224], 0x10
jae 0x40b353
push 0x190
jmp 0x40b358
push 0x103
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.004b53e0
add esp, 0xc
push dword [ebp - 0x234]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.0047c3fc
pop ecx
push 0x5f
push 0x5c
call fcn.0047ce42
push eax
push str.Console_s
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0047da40
add esp, 0x18
push ebx
lea eax, [ebp - 0x220]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40b047
push eax
push str._GetLastError_
push dword [ebp - 0x234]
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004178df
add esp, 0x10
jmp 0x40b019
push 0x2bc
push esi
push dword [ebp - 0x220]
call fcn.0040b5e2
add esp, 0xc
push ebx
push str.FullScreen
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0x32
push str.HistoryBufferSize
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 1
push str.InsertMode
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 4
push str.NumberOfHistoryBuffers
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 0xf5
push str.PopupColors
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push ebx
push str.QuickEdit
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push 7
push str.ScreenColors
push dword [ebp - 0x220]
or edi, eax
call fcn.0040b5e2
add esp, 0xc
push dword [ebp - 0x220]
or edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x228]
cmp eax, ebx
mov dword [ebp - 0x220], ebx
je 0x40b451
cmp eax, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], ebx
jne 0x40b067
jmp 0x40b451
cmp dword [ebp - 0x228], ebx
je 0x40b460
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x40b460
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.00417db7
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret