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

Disassembly:
sub esp, 0x120
mov eax, dword [0x74f8a0]
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.005f56e6
test eax, eax
je 0x458431
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 0x458431
fld qword [0x749d60]
mov eax, dword [0x754bec]
mov ecx, dword [0x754dcc]
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 0x457b20
cmp dword [0x7551f8], 0
jne 0x457b20
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 [0x7551f8], ebx
mov dword [esp + 0x2c], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
fld qword [esp + 0x34]
test eax, eax
jne 0x457b20
mov ecx, 0x17
lea esi, [esp + 0xd0]
mov edi, 0x755190
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
mov dword [0x7551f4], ebx
cmp dword [0x7551fc], 0
jne 0x457b39
mov edx, dword [esp + 0x74]
mov dword [0x7551fc], ebx
mov dword [0x749e38], edx
cmp dword [0x755204], 0
jne 0x457dd8
mov edx, dword [0x7551f4]
test edx, edx
je 0x457de3
mov eax, dword [0x75566c]
fstp st(0)
mov dword [0x755204], ebx
test eax, eax
je 0x457b6d
push eax
call fcn.005f0f3e
mov esi, eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005f542a
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
mov ebx, eax
call ebp
push eax
call fcn.005f56e6
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp dword [0x755208], 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 0x457c52
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0xd0]
mov dword [0x755208], 1
mov dword [esp + 0x3c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457bf0
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 0x457c22
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 [0x755210], ecx
mov dword [0x75520c], eax
push 0x755190
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
call fcn.005f56e6
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 0x457c90
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 [0x755210]
fst qword [0x749e40]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457cfa
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 0x457d29
fadd qword [0x678138]
fidiv dword [0x75520c]
mov ebx, 1
fstp qword [0x749e48]
fld qword [esp + 0x34]
fxch st(1)
mov edx, dword [0x7551f4]
test edx, edx
je 0x457de9
fstp st(1)
mov dword [esp + 0x60], ebx
fld st(0)
mov dword [esp + 0x54], 0
fst qword [esp + 0x34]
fld qword [0x749e48]
fstp qword [esp + 0x4c]
fcom qword [0x749d60]
fnstsw ax
test ah, 0x41
jne 0x457d7f
mov dword [0x755200], ebx
mov ecx, 0x17
fxch st(1)
mov esi, 0x755190
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x144], 0
je 0x457e32
mov eax, dword [esp + 0x58]
test eax, eax
je 0x457e32
fstp st(1)
fld qword [eax]
fst qword [esp + 0x34]
test edx, edx
je 0x457e2a
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.0061a2e0
mov dword [esp + 0x74], eax
jmp 0x457e34
fld qword [0x749e40]
jmp 0x457d40
fld qword [0x749e40]
xor eax, eax
cmp word [0x754d24], 0x54
je 0x457e0e
movzx ecx, word [eax + 0x67b370]
mov word [esp + eax + 0x90], cx
add eax, 2
test cx, cx
jne 0x457df5
jmp 0x457d91
movzx ecx, word [eax + str.Segoe_UI]
mov word [esp + eax + 0x90], cx
add eax, 2
test cx, cx
jne 0x457e0e
jmp 0x457d91
fstp st(1)
fst qword [esp + 0x4c]
jmp 0x457e34
fstp st(0)
cmp dword [esp + 0x60], 0
je 0x4582f2
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 0x457eae
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.0061a2e0
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.0061a2e0
mov esi, eax
sub esi, edi
add esi, dword [esp + 0x28]
cmp dword [esp + 0x144], 0
mov dword [esp + 0x14], 0
je 0x457f26
cmp dword [esp + 0x58], 0
jne 0x458281
push 0
lea edx, [esp + 0x68]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x458281
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 0x458059
cmp dword [esp + 0x13c], 0
je 0x457f86
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x457f88
lea eax, [ebx + ebx*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x457f88
mov esi, ebx
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [esp + 0x138]
cmp eax, edx
je 0x458059
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 0x457fd0
fstp st(1)
fld st(0)
fxch st(1)
cmp dword [esp + 0x54], 0
jne 0x458010
fild dword [esp + 0x74]
fmul st(2)
fdiv qword [esp + 0x34]
call fcn.0061a2e0
mov ebp, dword [0x749e38]
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 0x458010
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.0061a2e0
fxch st(2)
mov ecx, dword [esp + 0x44]
fstp qword [esp + 0x34]
mov ebp, eax
jmp 0x45805f
fld qword [esp + 0x4c]
fld1
cmp edi, ebp
jge 0x458142
cmp dword [esp + 0x13c], 0
je 0x458093
lea edx, [ebp + ebp]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x458095
lea eax, [edi + edi*2]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x458095
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 0x4580c4
fstp st(0)
fld st(0)
cmp dword [esp + 0x54], 0
jne 0x458102
fild dword [esp + 0x74]
fmul st(1)
fdiv st(3)
call fcn.0061a2e0
mov esi, dword [0x749e38]
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 0x458102
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.0061a2e0
fstp qword [esp + 0x4c]
mov esi, eax
sub esi, dword [esp + 0x20]
add esi, dword [esp + 0x28]
jmp 0x458146
fstp st(0)
fstp st(0)
cmp dword [esp + 0x140], 0
jne 0x45820c
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x458168
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x458195
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.0061a2e0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x4581a9
xor ecx, ecx
mov dword [esp + 0x30], ecx
jmp 0x4581dc
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.0061a2e0
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ebp]
cmp edx, edi
jle 0x4581eb
mov eax, edi
sub eax, ebp
mov dword [esp + 0x18], eax
lea edx, [esi + ecx]
cmp edx, ebx
jle 0x4581fa
sub ebx, esi
mov ecx, ebx
mov dword [esp + 0x30], ecx
xor edx, edx
cmp eax, edx
jge 0x458204
mov dword [esp + 0x18], edx
cmp ecx, edx
jge 0x45820c
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 0x45824c
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 0x458279
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 0x458281
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 0x458281
mov dword [esp + 0x14], 1
cmp dword [esp + 0x13c], 0
jne 0x4582a7
cmp dword [esp + 0x14], 0
jne 0x4582a7
mov ecx, dword [esp + 0x2c]
push 0x16
push esi
push ebp
push 0
push 0
push 0
call fcn.005ed449
jmp 0x4582c3
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 0x4582f2
fld qword [0x6795f0]
fsubr st(1)
fild dword [esp + 0x78]
fmul st(1)
call fcn.0061a2e0
fimul dword [esp + 0x74]
add dword [esp + 0x78], eax
call fcn.0061a2e0
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x458308
cmp dword [esp + 0x144], 0
jne 0x458308
fstp qword [eax]
jmp 0x45830a
fstp st(0)
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, eax
test ebx, ebx
je 0x45842f
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.005f0f3e
mov esi, eax
test esi, esi
je 0x45842f
cmp dword [esp + 0x60], 0
je 0x458408
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.0061a2e0
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.0061a2e0
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 [0x6795f0]
fmulp st(2)
fxch st(1)
call fcn.0061a2e0
fimul dword [esp + 0x64]
add eax, edi
push eax
call fcn.0061a2e0
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.005f0f3e
mov esi, eax
test esi, esi
jne 0x458350
pop edi
pop ebx
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
xor ecx, esp
call fcn.0061807e
add esp, 0x120
ret