Function at 0x41724e
Capabilities:
Set registry value

Disassembly:
jmp 0x41724e
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0xad]
push ebx
push eax
mov byte [ebp + 0xac], bl
call fcn.00508d00
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
xor edi, edi
push 0x30
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
inc edi
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x4172d5
push str._GetLastError_
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
mov dword [ebp - 0x60], 0xf
jmp 0x417393
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x74]
sub esi, dword [ebp - 0x7c]
cmp eax, ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], esi
jne 0x4172f1
xor eax, eax
inc eax
mov dword [ebp - 0x68], eax
cmp esi, ebx
jne 0x4172fb
xor esi, esi
inc esi
mov dword [ebp - 0x60], esi
fild dword [ebp - 0x60]
xor ecx, ecx
cmp eax, esi
setle cl
fstp dword [ebp - 0x60]
fild dword [ebp - 0x68]
fstp dword [ebp - 0x68]
fld dword [ebp - 0x60]
fdiv dword [ebp - 0x68]
dec ecx
and ecx, 0xfffffff9
add ecx, 0xe
mov dword [ebp - 0x6c], ecx
fcomp qword [0x58a5a8]
fnstsw ax
test ah, 5
jp 0x417332
mov dword [ebp - 0x6c], 1
fld dword [ebp - 0x60]
fmul qword [0x58a598]
fadd qword [0x58a588]
fld dword [ebp - 0x68]
fdiv dword [ebp - 0x60]
fsubr qword [0x58a578]
fimul dword [ebp - 0x6c]
fsubp st(1)
call fcn.0050eb06
cmp eax, 0xe
mov dword [ebp - 0x60], eax
jae 0x417363
inc eax
mov dword [ebp - 0x60], eax
push 9
pop ecx
cmp eax, ecx
jae 0x41736f
mov dword [ebp - 0x60], ecx
jmp 0x417393
push 0x1c
pop esi
cmp eax, esi
jbe 0x417393
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
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.004020c2
add esp, 0x18
mov dword [ebp - 0x60], esi
push dword [ebp - 0x70]
call fcn.004010dc
test eax, eax
pop ecx
je 0x4175f8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
lea eax, [ebp - 0x5c]
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 0x4173e2
push eax
push str._GetLastError_
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004020c2
add esp, 0xc
xor eax, eax
jmp 0x41775b
push ebx
lea eax, [ebp - 0x64]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Console
push closesocket
call esi
test eax, eax
je 0x417403
mov dword [ebp - 0x64], ebx
cmp dword [ebp - 0x5c], ebx
je 0x41773c
mov eax, dword [ebp - 0x60]
shl eax, 0x10
mov dword [ebp - 0x6c], eax
mov esi, str.FontWeight
push ebx
push str.ColorTable00
push dword [ebp - 0x5c]
call fcn.0040237e
push 0x800000
push str.ColorTable01
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x8000
push str.ColorTable02
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x808000
push str.ColorTable03
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x80
push str.ColorTable04
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x800080
push str.ColorTable05
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
add esp, 0x48
push 0x8080
push str.ColorTable06
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xc0c0c0
push str.ColorTable07
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x808080
push str.ColorTable08
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xff0000
push str.ColorTable09
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xff00
push str.ColorTable10
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xffff00
push str.ColorTable11
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
add esp, 0x48
push 0xff
push str.ColorTable12
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xff00ff
push str.ColorTable13
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xffff
push str.ColorTable14
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xffffff
push str.ColorTable15
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
or edi, eax
lea eax, [ebp + 0xac]
push 0x58628c
push eax
call fcn.0050d660
lea eax, [ebp + 0xac]
push eax
call fcn.00508320
add esp, 0x3c
inc eax
push eax
lea eax, [ebp + 0xac]
push eax
push 1
push ebx
push str.FaceName
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x4175ad
push eax
push str._GetLastError_
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.004020c2
add esp, 0xc
push 0x19
push str.CursorSize
push dword [ebp - 0x5c]
call fcn.0040237e
push 0x36
push str.FontFamily
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push dword [ebp - 0x6c]
or edi, eax
push str.FontSize
push dword [ebp - 0x5c]
call fcn.0040237e
add esp, 0x24
or edi, eax
cmp dword [ebp - 0x60], 0x10
jae 0x417688
push 0x190
jmp 0x41768d
push 0x103
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.00508d00
mov esi, 0x104
push esi
push dword [ebp - 0x70]
lea eax, [ebp + 0xac]
push eax
call fcn.00402abd
push 0x5f
lea eax, [ebp + 0xac]
push 0x5c
push eax
call fcn.0040307b
lea eax, [ebp + 0xac]
push eax
push str.Console_s
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00402dbf
add esp, 0x34
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x417403
push eax
push str._GetLastError_
push dword [ebp - 0x70]
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004020c2
add esp, 0x10
jmp 0x4173db
push 0x2bc
push esi
push dword [ebp - 0x5c]
call fcn.0040237e
add esp, 0xc
push ebx
push str.FullScreen
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0x32
push str.HistoryBufferSize
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 1
push str.InsertMode
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 4
push str.NumberOfHistoryBuffers
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push 0xf5
push str.PopupColors
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
push ebx
push str.QuickEdit
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
add esp, 0x48
push 7
push str.ScreenColors
push dword [ebp - 0x5c]
or edi, eax
call fcn.0040237e
add esp, 0xc
push dword [ebp - 0x5c]
or edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x64]
cmp eax, ebx
mov dword [ebp - 0x5c], ebx
je 0x41774a
cmp eax, ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], ebx
jne 0x41741a
jmp 0x41774a
cmp dword [ebp - 0x64], ebx
je 0x417759
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x417759
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.00401375
pop ecx
mov eax, edi
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x1b4
leave
ret