Function at 0x40c3c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5385d0]
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.004b7880
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 0x40c453
push str._GetLastError_
push str.:7:SetConsoleFont___FAILED:_The_default_font_height_15_will_be_used:_SystemParametersInfo___FAILED:__s
call fcn.00418e96
pop ecx
pop ecx
mov dword [ebp - 0x224], 0xf
jmp 0x40c565
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 0x40c484
xor eax, eax
inc eax
mov dword [ebp - 0x22c], eax
cmp esi, ebx
jne 0x40c491
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 [0x5341a0]
fnstsw ax
test ah, 5
jp 0x40c4e0
mov dword [ebp - 0x230], 1
fld dword [ebp - 0x224]
fmul qword [0x534198]
fadd qword [0x534190]
fld dword [ebp - 0x22c]
fdiv dword [ebp - 0x224]
fsubr qword [0x534188]
fimul dword [ebp - 0x230]
fsubp st(1)
call fcn.004cfd36
cmp eax, 0xe
mov dword [ebp - 0x224], eax
jae 0x40c523
inc eax
mov dword [ebp - 0x224], eax
push 9
pop ecx
cmp eax, ecx
jae 0x40c532
mov dword [ebp - 0x224], ecx
jmp 0x40c565
push 0x1c
pop esi
cmp eax, esi
jbe 0x40c565
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.00418e96
add esp, 0x18
mov dword [ebp - 0x224], esi
mov edx, dword [ebp - 0x234]
call fcn.0047ebaf
test eax, eax
je 0x40c850
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 0x40c5b9
push eax
push str._GetLastError_
push str.:8:SetConsoleFont_NULL__FAILED_to_set_the_default_console:_RegCreateKeyEx___FAILED:__s_ld
call fcn.00418e96
add esp, 0xc
xor eax, eax
jmp 0x40c9fb
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 0x40c5e0
mov dword [ebp - 0x228], ebx
cmp dword [ebp - 0x220], ebx
je 0x40c9d6
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.0040cb7b
add esp, 0xc
push 0x800000
push str.ColorTable01
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x8000
push str.ColorTable02
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x808000
push str.ColorTable03
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x80
push str.ColorTable04
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x800080
push str.ColorTable05
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x8080
push str.ColorTable06
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xc0c0c0
push str.ColorTable07
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x808080
push str.ColorTable08
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xff0000
push str.ColorTable09
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xff00
push str.ColorTable10
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xffff00
push str.ColorTable11
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xff
push str.ColorTable12
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xff00ff
push str.ColorTable13
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xffff
push str.ColorTable14
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xffffff
push str.ColorTable15
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
or edi, eax
lea eax, [ebp - 0x114]
push 0x4d91b4
push eax
call fcn.004b6c20
lea eax, [ebp - 0x114]
push eax
call fcn.004b68f0
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 0x40c7f0
push eax
push str._GetLastError_
push str.:4:SetConsoleFont___FAILED:_RegSetValueEx__FaceName___FAILED:__s_ld
call fcn.00418e96
add esp, 0xc
push 0x19
push str.CursorSize
push dword [ebp - 0x220]
call fcn.0040cb7b
add esp, 0xc
push 0x36
push str.FontFamily
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push dword [ebp - 0x230]
or edi, eax
push str.FontSize
push dword [ebp - 0x220]
call fcn.0040cb7b
add esp, 0xc
or edi, eax
cmp dword [ebp - 0x224], 0x10
jae 0x40c8ec
push 0x190
jmp 0x40c8f1
push 0x103
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.004b7880
add esp, 0xc
push dword [ebp - 0x234]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.0047ebe1
pop ecx
push 0x5f
push 0x5c
call fcn.0047f627
push eax
push str.Console_s
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00480225
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 0x40c5e0
push eax
push str._GetLastError_
push dword [ebp - 0x234]
push str.:8:SetConsoleFont__s__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.00418e96
add esp, 0x10
jmp 0x40c5b2
push 0x2bc
push esi
push dword [ebp - 0x220]
call fcn.0040cb7b
add esp, 0xc
push ebx
push str.FullScreen
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0x32
push str.HistoryBufferSize
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 1
push str.InsertMode
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 4
push str.NumberOfHistoryBuffers
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 0xf5
push str.PopupColors
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push ebx
push str.QuickEdit
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
add esp, 0xc
push 7
push str.ScreenColors
push dword [ebp - 0x220]
or edi, eax
call fcn.0040cb7b
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 0x40c9ea
cmp eax, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], ebx
jne 0x40c600
jmp 0x40c9ea
cmp dword [ebp - 0x228], ebx
je 0x40c9f9
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x40c9f9
push str.:5:SetConsoleFont___encountered_a_problem:_One_of_the_SetRegDwords___seems_to_have_failed.
call fcn.0041936e
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret