Function at 0x456d00
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x120
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x138]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, dword [esp + 0x12c]
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x60], eax
call ebp
push eax
call fcn.005f0a5e
test eax, eax
je 0x457701
mov eax, dword [eax + 4]
lea edx, [esp + 0x6c]
push edx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457701
fld qword [0x743d50]
mov eax, dword [0x74ea0c]
mov ecx, dword [0x74ebec]
fld st(0)
fst qword [esp + 0x2c]
push ebx
fxch st(1)
mov ebx, 1
fstp qword [esp + 0x48]
push edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], ebx
test eax, eax
je 0x456df0
cmp dword [0x74f018], 0
jne 0x456df0
lea edx, [esp + 0x14]
fstp st(0)
push edx
lea ecx, [esp + 0xd4]
push ecx
push 0
push 0
push str.selectedFont
push eax
mov dword [0x74f018], ebx
mov dword [esp + 0x2c], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
fld qword [esp + 0x34]
test eax, eax
jne 0x456df0
mov ecx, 0x17
lea esi, [esp + 0xd0]
mov edi, 0x74efb0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
mov dword [0x74f014], ebx
cmp dword [0x74f01c], 0
jne 0x456e09
mov edx, dword [esp + 0x74]
mov dword [0x74f01c], ebx
mov dword [0x743e28], edx
cmp dword [0x74f024], 0
jne 0x4570a8
mov edx, dword [0x74f014]
test edx, edx
je 0x4570b3
mov eax, dword [0x74f48c]
fstp st(0)
mov dword [0x74f024], ebx
test eax, eax
je 0x456e3d
push eax
call fcn.005ec2b6
mov esi, eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005f07a2
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
mov ebx, eax
call ebp
push eax
call fcn.005f0a5e
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp dword [0x74f028], 0
mov ecx, 0x12
mov esi, str.AQWERtyuiop_ASdfghjkl_Zxcvbnm_wwwamd
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
mov ebp, eax
jne 0x456f22
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0xd0]
mov dword [0x74f028], 1
mov dword [esp + 0x3c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456ec0
push 0x400
sub eax, edx
lea ecx, [esp + 0x40]
push ecx
sar eax, 1
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0xdc]
push edx
push eax
call esi
lea eax, [esp + 0xd0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456ef2
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
xor edx, edx
div ecx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov dword [0x74f030], ecx
mov dword [0x74f02c], eax
push 0x74efb0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
call fcn.005f0a5e
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x1c], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456f60
push 0x400
sub eax, edx
lea ecx, [esp + 0x20]
push ecx
sar eax, 1
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0xdc]
push edx
push eax
call esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push ebp
mov ecx, ebx
call eax
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
lea eax, [esp + 0xd0]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
lea edx, [eax + 2]
fidiv dword [0x74f030]
fst qword [0x743e30]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456fca
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
xor edx, edx
div ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jge 0x456ff9
fadd qword [0x673118]
fidiv dword [0x74f02c]
mov ebx, 1
fstp qword [0x743e38]
fld qword [esp + 0x34]
fxch st(1)
mov edx, dword [0x74f014]
test edx, edx
je 0x4570b9
fstp st(1)
mov dword [esp + 0x60], ebx
fld st(0)
mov dword [esp + 0x54], 0
fst qword [esp + 0x34]
fld qword [0x743e38]
fstp qword [esp + 0x4c]
fcom qword [0x743d50]
fnstsw ax
test ah, 0x41
jne 0x45704f
mov dword [0x74f020], ebx
mov ecx, 0x17
fxch st(1)
mov esi, 0x74efb0
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x144], 0
je 0x457102
mov eax, dword [esp + 0x58]
test eax, eax
je 0x457102
fstp st(1)
fld qword [eax]
fst qword [esp + 0x34]
test edx, edx
je 0x4570fa
fld qword [esp + 0x4c]
fmul st(1)
fdiv st(2)
fstp qword [esp + 0x4c]
fild dword [esp + 0x74]
fmul st(1)
fdivrp st(2)
fxch st(1)
call fcn.006154a0
mov dword [esp + 0x74], eax
jmp 0x457104
fld qword [0x743e30]
jmp 0x457010
fld qword [0x743e30]
xor eax, eax
cmp word [0x74eb44], 0x54
je 0x4570de
movzx ecx, word [eax + 0x676300]
mov word [esp + eax + 0x90], cx
add eax, 2
test cx, cx
jne 0x4570c5
jmp 0x457061
movzx ecx, word [eax + str.Segoe_UI]
mov word [esp + eax + 0x90], cx
add eax, 2
test cx, cx
jne 0x4570de
jmp 0x457061
fstp st(1)
fst qword [esp + 0x4c]
jmp 0x457104
fstp st(0)
cmp dword [esp + 0x60], 0
je 0x4575c2
mov esi, dword [esp + 0x2c]
fstp st(0)
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, ecx
cdq
and edx, 3
add edx, eax
mov esi, dword [esp + 0x40]
sar edx, 2
mov eax, ecx
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
sub eax, edx
cmp dword [esp + 0x140], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
je 0x45717e
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x44]
sub edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fld qword [esp + 0x4c]
sub eax, ecx
fld1
mov dword [esp + 0x14], eax
fsub st(1), st(0)
fxch st(2)
fmulp st(1)
fild dword [esp + 0x14]
faddp st(1)
call fcn.006154a0
mov ecx, dword [esp + 0x48]
sub ecx, esi
sub ecx, dword [esp + 0x138]
mov ebp, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld qword [esp + 0x34]
fsubrp st(2)
fmulp st(1)
call fcn.006154a0
mov esi, eax
sub esi, edi
add esi, dword [esp + 0x28]
cmp dword [esp + 0x144], 0
mov dword [esp + 0x14], 0
je 0x4571f6
cmp dword [esp + 0x58], 0
jne 0x457551
push 0
lea edx, [esp + 0x68]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x457551
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
sub ebx, dword [esp + 0x68]
sub edi, dword [esp + 0x64]
cmp ebx, esi
mov ecx, dword [esp + 0x44]
jge 0x457329
cmp dword [esp + 0x13c], 0
je 0x457256
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x457258
lea eax, [ebx + ebx*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x457258
mov esi, ebx
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [esp + 0x138]
cmp eax, edx
je 0x457329
mov ecx, esi
sub ecx, dword [esp + 0x28]
sub eax, edx
add ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivp st(1)
fld1
fadd st(1), st(0)
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4572a0
fstp st(1)
fld st(0)
fxch st(1)
cmp dword [esp + 0x54], 0
jne 0x4572e0
fild dword [esp + 0x74]
fmul st(2)
fdiv qword [esp + 0x34]
call fcn.006154a0
mov ebp, dword [0x743e28]
mov ecx, eax
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
xor eax, edx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
sub eax, edx
cmp ecx, eax
jle 0x4572e0
mov dword [esp + 0x74], ebp
fld st(1)
mov edx, dword [esp + 0x44]
fmul qword [esp + 0x4c]
sub edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
fdiv qword [esp + 0x34]
mov dword [esp + 0x10], edx
fst qword [esp + 0x4c]
fild dword [esp + 0x10]
fld st(1)
fsub st(3)
mov dword [esp + 0x10], eax
fmulp st(1)
fild dword [esp + 0x10]
faddp st(1)
call fcn.006154a0
fxch st(2)
mov ecx, dword [esp + 0x44]
fstp qword [esp + 0x34]
mov ebp, eax
jmp 0x45732f
fld qword [esp + 0x4c]
fld1
cmp edi, ebp
jge 0x457412
cmp dword [esp + 0x13c], 0
je 0x457363
lea edx, [ebp + ebp]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x457365
lea eax, [edi + edi*2]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x457365
mov ebp, edi
sub ecx, dword [esp + 0x3c]
mov edx, ebp
sub edx, dword [esp + 0x24]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fdivp st(1)
fadd st(1)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x457394
fstp st(0)
fld st(0)
cmp dword [esp + 0x54], 0
jne 0x4573d2
fild dword [esp + 0x74]
fmul st(1)
fdiv st(3)
call fcn.006154a0
mov esi, dword [0x743e28]
mov ecx, eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
xor eax, edx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
sub eax, edx
cmp ecx, eax
jle 0x4573d2
mov dword [esp + 0x74], esi
fld qword [esp + 0x34]
mov eax, dword [esp + 0x48]
fmul st(1)
sub eax, dword [esp + 0x40]
sub eax, dword [esp + 0x138]
fdivrp st(3)
mov dword [esp + 0x10], eax
fxch st(2)
fst qword [esp + 0x34]
fild dword [esp + 0x10]
fxch st(1)
fsubrp st(2)
fmulp st(1)
call fcn.006154a0
fstp qword [esp + 0x4c]
mov esi, eax
sub esi, dword [esp + 0x20]
add esi, dword [esp + 0x28]
jmp 0x457416
fstp st(0)
fstp st(0)
cmp dword [esp + 0x140], 0
jne 0x4574dc
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x457438
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x457465
mov ecx, edi
sub ecx, ebp
mov edx, edi
sub edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
fimul dword [esp + 0x1c]
fild dword [esp + 0x10]
fdivp st(1)
call fcn.006154a0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x457479
xor ecx, ecx
mov dword [esp + 0x30], ecx
jmp 0x4574ac
mov edx, ebx
sub edx, esi
mov eax, ebx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
add eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
fimul dword [esp + 0x20]
fild dword [esp + 0x10]
fdivp st(1)
call fcn.006154a0
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ebp]
cmp edx, edi
jle 0x4574bb
mov eax, edi
sub eax, ebp
mov dword [esp + 0x18], eax
lea edx, [esi + ecx]
cmp edx, ebx
jle 0x4574ca
sub ebx, esi
mov ecx, ebx
mov dword [esp + 0x30], ecx
xor edx, edx
cmp eax, edx
jge 0x4574d4
mov dword [esp + 0x18], edx
cmp ecx, edx
jge 0x4574dc
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x18]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ecx]
lea ecx, [edi + edi*8]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jle 0x45751c
mov edx, edi
imul edx, edx, 0xb
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jl 0x457549
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, ecx
jle 0x457551
imul edi, edi, 0xb
mov eax, 0x66666667
imul edi
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jge 0x457551
mov dword [esp + 0x14], 1
cmp dword [esp + 0x13c], 0
jne 0x457577
cmp dword [esp + 0x14], 0
jne 0x457577
mov ecx, dword [esp + 0x2c]
push 0x16
push esi
push ebp
push 0
push 0
push 0
call fcn.005e87bd
jmp 0x457593
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push 1
push esi
push ebp
push edx
mov edx, dword [ecx + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x54], 0
fld qword [esp + 0x34]
je 0x4575c2
fld qword [0x6745d0]
fsubr st(1)
fild dword [esp + 0x78]
fmul st(1)
call fcn.006154a0
fimul dword [esp + 0x74]
add dword [esp + 0x78], eax
call fcn.006154a0
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4575d8
cmp dword [esp + 0x144], 0
jne 0x4575d8
fstp qword [eax]
jmp 0x4575da
fstp st(0)
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, eax
test ebx, ebx
je 0x4576ff
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ebx
push 0x30
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.005ec2b6
mov esi, eax
test esi, esi
je 0x4576ff
cmp dword [esp + 0x60], 0
je 0x4576d8
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
push 1
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld qword [esp + 0x38]
fmul st(1), st(0)
fxch st(1)
call fcn.006154a0
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
push eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
call fcn.006154a0
mov edi, dword [esp + 0x64]
push eax
mov eax, edi
sub eax, dword [esp + 0x144]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fxch st(2)
fsub qword [0x6745d0]
fmulp st(2)
fxch st(1)
call fcn.006154a0
fimul dword [esp + 0x64]
add eax, edi
push eax
call fcn.006154a0
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x20]
push 1
push ebx
push 0x30
push edx
call ebp
mov esi, dword [esi + 0x20]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.005ec2b6
mov esi, eax
test esi, esi
jne 0x457620
pop edi
pop ebx
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
xor ecx, esp
call fcn.00613241
add esp, 0x120
ret