Function at 0x41d360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x12c], 0
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], 1
push 0
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x41d419
push 0x64b164
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.00401014
add esp, 8
mov dword [ebp - 8], 0xf
jmp 0x41d536
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x12c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x120]
sub ecx, dword [ebp - 0x128]
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x13c], 0
jne 0x41d46e
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x138], 0
jne 0x41d481
mov dword [ebp - 0x138], 1
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 0x138]
jle 0x41d49b
mov dword [ebp - 0x140], 7
jmp 0x41d4a5
mov dword [ebp - 0x140], 0xe
fild dword [ebp - 0x138]
fidiv dword [ebp - 0x13c]
fcomp qword [0x629df8]
fnstsw ax
test ah, 5
jp 0x41d4c8
mov dword [ebp - 0x140], 1
fild dword [ebp - 0x138]
fmul qword [0x629de8]
fadd qword [0x629dd8]
fild dword [ebp - 0x13c]
fidiv dword [ebp - 0x138]
fsubr qword [0x629dc8]
fimul dword [ebp - 0x140]
fsubp st(1)
fnstcw word [ebp - 0x24a]
movzx eax, word [ebp - 0x24a]
or eax, 0xc00
mov dword [ebp - 0x250], eax
fldcw word [ebp - 0x250]
fistp qword [ebp - 0x258]
fldcw word [ebp - 0x24a]
mov eax, dword [ebp - 0x258]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe
jae 0x41d536
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 9
jae 0x41d578
mov dword [ebp - 8], 9
cmp dword [ebp - 8], 8
jae 0x41d576
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 8]
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_set_to_the_minimum_of_9.
call fcn.00401014
add esp, 0x18
jmp 0x41d5b2
cmp dword [ebp - 8], 0x1c
jbe 0x41d5b2
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 8]
push edx
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.00401014
add esp, 0x18
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp + 8]
push eax
call fcn.00401389
add esp, 4
test eax, eax
je 0x41d65c
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..DEFAULTConsole
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x41d618
mov edx, dword [ebp - 0x130]
push edx
push 0x64b32c
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.00401014
add esp, 0xc
xor eax, eax
jmp 0x41dbaf
push 0
lea eax, [ebp - 0x134]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Console
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x41d657
mov dword [ebp - 0x134], 0
jmp 0x41d71c
mov byte [ebp - 0x248], 0
push 0x103
push 0
lea ecx, [ebp - 0x247]
push ecx
call fcn.005b02a0
add esp, 0xc
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00402725
add esp, 0xc
push 0x5f
push 0x5c
lea ecx, [ebp - 0x118]
push ecx
call fcn.004032ba
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push str.Console_s
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00402dc9
add esp, 0x10
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x248]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x41d71c
mov eax, dword [ebp - 0x130]
push eax
push 0x64b3b0
mov ecx, dword [ebp + 8]
push ecx
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.00401014
add esp, 0x10
xor eax, eax
jmp 0x41dbaf
cmp dword [ebp - 4], 0
je 0x41db6d
push 0
push str.ColorTable00
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x800000
push str.ColorTable01
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x8000
push str.ColorTable02
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x808000
push str.ColorTable03
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x80
push str.ColorTable04
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x800080
push str.ColorTable05
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x8080
push str.ColorTable06
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xc0c0c0
push str.ColorTable07
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x808080
push str.ColorTable08
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xff0000
push str.ColorTable09
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xff00
push str.ColorTable10
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xffff00
push str.ColorTable11
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xff
push str.ColorTable12
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xff00ff
push str.ColorTable13
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xffff
push str.ColorTable14
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xffffff
push str.ColorTable15
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x64b500
lea eax, [ebp - 0x118]
push eax
call fcn.005b4720
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
call fcn.005b4690
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x118]
push edx
push 1
push 0
push str.FaceName
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x41d9ac
mov ecx, dword [ebp - 0x130]
push ecx
push 0x64b51c
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.00401014
add esp, 0xc
push 0x19
push str.CursorSize
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x36
push str.FontFamily
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 8]
shl ecx, 0x10
push ecx
push str.FontSize
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 8], 0x10
jae 0x41da38
push 0x190
push 0x64b598
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
jmp 0x41da5a
push 0x2bc
push str.FontWeight
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0
push str.FullScreen
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0x32
push str.HistoryBufferSize
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 1
push str.InsertMode
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 4
push str.NumberOfHistoryBuffers
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0xf5
push str.PopupColors
mov eax, dword [ebp - 4]
push eax
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 0
push str.QuickEdit
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
push 7
push str.ScreenColors
mov edx, dword [ebp - 4]
push edx
call fcn.0040152d
add esp, 0xc
or eax, dword [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x134], 0
je 0x41db68
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x134], 0
jmp 0x41d71c
jmp 0x41d71c
cmp dword [ebp - 4], 0
je 0x41db7d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x134], 0
je 0x41db93
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
jne 0x41dba9
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.004018ca
add esp, 4
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret