Function at 0x41156c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5c4e68]
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.005117f0
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 0x4115fd
push str._GetLastError_
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.004265da
pop ecx
pop ecx
mov dword [ebp - 0x224], 0xf
jmp 0x41170f
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 0x41162e
xor eax, eax
inc eax
mov dword [ebp - 0x22c], eax
cmp esi, ebx
jne 0x41163b
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 [0x5bf9a0]
fnstsw ax
test ah, 5
jp 0x41168a
mov dword [ebp - 0x230], 1
fld dword [ebp - 0x224]
fmul qword [0x5bf998]
fadd qword [0x5bf990]
fld dword [ebp - 0x22c]
fdiv dword [ebp - 0x224]
fsubr qword [0x5bf988]
fimul dword [ebp - 0x230]
fsubp st(1)
call fcn.0052a8c6
cmp eax, 0xe
mov dword [ebp - 0x224], eax
jae 0x4116cd
inc eax
mov dword [ebp - 0x224], eax
push 9
pop ecx
cmp eax, ecx
jae 0x4116dc
mov dword [ebp - 0x224], ecx
jmp 0x41170f
push 0x1c
pop esi
cmp eax, esi
jbe 0x41170f
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.004265da
add esp, 0x18
mov dword [ebp - 0x224], esi
mov edx, dword [ebp - 0x234]
call fcn.004c3b34
test eax, eax
je 0x4119fa
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 0x411763
push eax
push str._GetLastError_
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004265da
add esp, 0xc
xor eax, eax
jmp 0x411ba5
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 0x41178a
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x220], ebx
je 0x411b80
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.00411ff4
add esp, 0xc
push 0x800000
push str.ColorTable01
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x8000
push str.ColorTable02
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x808000
push str.ColorTable03
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x80
push str.ColorTable04
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x800080
push str.ColorTable05
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x8080
push str.ColorTable06
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xc0c0c0
push str.ColorTable07
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x808080
push str.ColorTable08
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xff0000
push str.ColorTable09
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xff00
push str.ColorTable10
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xffff00
push str.ColorTable11
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xff
push str.ColorTable12
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xff00ff
push str.ColorTable13
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xffff
push str.ColorTable14
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xffffff
push str.ColorTable15
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
or edi, eax
lea eax, [ebp - 0x114]
push 0x536204
push eax
call fcn.005123e0
lea eax, [ebp - 0x114]
push eax
call fcn.005120b0
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 0x41199a
push eax
push str._GetLastError_
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.004265da
add esp, 0xc
push 0x19
push str.CursorSize
push dword [ebp - 0x220]
call fcn.00411ff4
add esp, 0xc
push 0x36
push str.FontFamily
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push dword [ebp - 0x230]
or edi, eax
push str.FontSize
push dword [ebp - 0x220]
call fcn.00411ff4
add esp, 0xc
or edi, eax
cmp dword [ebp - 0x224], 0x10
jae 0x411a96
push 0x190
jmp 0x411a9b
push 0x103
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.005117f0
add esp, 0xc
push dword [ebp - 0x234]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.004c3b66
pop ecx
push 0x5f
push 0x5c
call fcn.004c4652
push eax
push str.Console_s
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004c53b7
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 0x41178a
push eax
push str._GetLastError_
push dword [ebp - 0x234]
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004265da
add esp, 0x10
jmp 0x41175c
push 0x2bc
push esi
push dword [ebp - 0x220]
call fcn.00411ff4
add esp, 0xc
push ebx
push str.FullScreen
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0x32
push str.HistoryBufferSize
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 1
push str.InsertMode
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 4
push str.NumberOfHistoryBuffers
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 0xf5
push str.PopupColors
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push ebx
push str.QuickEdit
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
add esp, 0xc
push 7
push str.ScreenColors
push dword [ebp - 0x220]
or edi, eax
call fcn.00411ff4
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 0x411b94
cmp eax, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], ebx
jne 0x4117aa
jmp 0x411b94
cmp dword [ebp - 0x228], ebx
je 0x411ba3
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x411ba3
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.00426c01
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret