Function at 0x41352d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5f2e68]
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.005306b0
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 0x4135be
push str._GetLastError_
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.0042b70b
pop ecx
pop ecx
mov dword [ebp - 0x224], 0xf
jmp 0x4136d0
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 0x4135ef
xor eax, eax
inc eax
mov dword [ebp - 0x22c], eax
cmp esi, ebx
jne 0x4135fc
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 [0x5edcf0]
fnstsw ax
test ah, 5
jp 0x41364b
mov dword [ebp - 0x230], 1
fld dword [ebp - 0x224]
fmul qword [0x5edce8]
fadd qword [0x5edce0]
fld dword [ebp - 0x22c]
fdiv dword [ebp - 0x224]
fsubr qword [0x5edcd8]
fimul dword [ebp - 0x230]
fsubp st(1)
call fcn.005499e6
cmp eax, 0xe
mov dword [ebp - 0x224], eax
jae 0x41368e
inc eax
mov dword [ebp - 0x224], eax
push 9
pop ecx
cmp eax, ecx
jae 0x41369d
mov dword [ebp - 0x224], ecx
jmp 0x4136d0
push 0x1c
pop esi
cmp eax, esi
jbe 0x4136d0
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.0042b70b
add esp, 0x18
mov dword [ebp - 0x224], esi
mov edx, dword [ebp - 0x234]
call fcn.004ccc0d
test eax, eax
je 0x4139bb
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 0x413724
push eax
push str._GetLastError_
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.0042b70b
add esp, 0xc
xor eax, eax
jmp 0x413b66
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 0x41374b
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x220], ebx
je 0x413b41
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.00413fb5
add esp, 0xc
push 0x800000
push str.ColorTable01
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x8000
push str.ColorTable02
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x808000
push str.ColorTable03
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x80
push str.ColorTable04
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x800080
push str.ColorTable05
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x8080
push str.ColorTable06
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xc0c0c0
push str.ColorTable07
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x808080
push str.ColorTable08
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xff0000
push str.ColorTable09
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xff00
push str.ColorTable10
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xffff00
push str.ColorTable11
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xff
push str.ColorTable12
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xff00ff
push str.ColorTable13
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xffff
push str.ColorTable14
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xffffff
push str.ColorTable15
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
or edi, eax
lea eax, [ebp - 0x114]
push 0x556064
push eax
call fcn.005312a0
lea eax, [ebp - 0x114]
push eax
call fcn.00530f70
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 0x41395b
push eax
push str._GetLastError_
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.0042b70b
add esp, 0xc
push 0x19
push str.CursorSize
push dword [ebp - 0x220]
call fcn.00413fb5
add esp, 0xc
push 0x36
push str.FontFamily
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push dword [ebp - 0x230]
or edi, eax
push str.FontSize
push dword [ebp - 0x220]
call fcn.00413fb5
add esp, 0xc
or edi, eax
cmp dword [ebp - 0x224], 0x10
jae 0x413a57
push 0x190
jmp 0x413a5c
push 0x103
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.005306b0
add esp, 0xc
push dword [ebp - 0x234]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.004ccc3f
pop ecx
push 0x5f
push 0x5c
call fcn.004cd72b
push eax
push str.Console_s
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004ce4e5
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 0x41374b
push eax
push str._GetLastError_
push dword [ebp - 0x234]
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.0042b70b
add esp, 0x10
jmp 0x41371d
push 0x2bc
push esi
push dword [ebp - 0x220]
call fcn.00413fb5
add esp, 0xc
push ebx
push str.FullScreen
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0x32
push str.HistoryBufferSize
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 1
push str.InsertMode
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 4
push str.NumberOfHistoryBuffers
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 0xf5
push str.PopupColors
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push ebx
push str.QuickEdit
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
add esp, 0xc
push 7
push str.ScreenColors
push dword [ebp - 0x220]
or edi, eax
call fcn.00413fb5
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 0x413b55
cmp eax, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], ebx
jne 0x41376b
jmp 0x413b55
cmp dword [ebp - 0x228], ebx
je 0x413b64
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x413b64
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.0042bd38
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret