Function at 0x1002a310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a12e8
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100cdbe8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
push 0x438
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
seta al
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
mov byte [edx + 0x118], al
lea ecx, [ebp - 0x14]
call fcn.100657c0
mov dword [ebp - 4], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.PrintCfg
push 0x100cf174
lea eax, [ebp - 0xb4]
push eax
call fcn.10009c20
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
call fcn.1000abd0
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.10006590
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xad], al
lea ecx, [ebp - 0xb4]
call fcn.10009d50
movzx ecx, byte [ebp - 0xad]
test ecx, ecx
je 0x1002a6d5
push 0x466
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
jbe 0x1002a42b
push 3
push 0x100ae670
lea ecx, [ebp - 0x14]
call fcn.10006770
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x238]
add eax, 0x88
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
mov dword [edx + 0xc8], eax
jmp 0x1002a4a1
push 0x465
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
jbe 0x1002a471
push 2
push 0x100ae678
lea ecx, [ebp - 0x14]
call fcn.10006770
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x238]
add ecx, 8
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x238]
mov dword [eax + 0xc8], ecx
jmp 0x1002a4a1
push 1
push str.Area
lea ecx, [ebp - 0x14]
call fcn.10006770
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
add edx, 0x48
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x238]
mov dword [ecx + 0xc8], edx
push 0x46f
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
jbe 0x1002a4c6
push 1
push 0x100ae688
lea ecx, [ebp - 0x14]
call fcn.10006770
jmp 0x1002a4d5
push 2
push 0x100ae690
lea ecx, [ebp - 0x14]
call fcn.10006770
push 0x474
mov ecx, dword [ebp - 0xb8]
call fcn.1007113c
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
call fcn.10006120
mov edx, dword [ebp - 0xb8]
mov ecx, dword [edx + 0x238]
mov dword [ecx + 0x110], eax
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x238]
mov ecx, dword [eax + 0x110]
push ecx
push str.Rotate
lea ecx, [ebp - 0x14]
call fcn.10006770
push 0x80
lea edx, [ebp - 0xa4]
push edx
push 0x476
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.10007a30
add esp, 8
movzx edx, al
test edx, edx
jne 0x1002a563
fldz
fstp qword [ebp - 0x1c]
push 8
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.OffsetX
lea ecx, [ebp - 0x14]
call fcn.1000abd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
push 0x478
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.10007a30
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x1002a5bc
fldz
fstp qword [ebp - 0x1c]
push 8
lea edx, [ebp - 0x1c]
push edx
push 3
push 0
push str.OffsetY
lea ecx, [ebp - 0x14]
call fcn.1000abd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x479
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
push eax
push 0x100ae6b0
lea ecx, [ebp - 0x14]
call fcn.10006770
push 0x80
lea eax, [ebp - 0xa4]
push eax
push 0x47b
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.10007a30
add esp, 8
movzx eax, al
test eax, eax
jne 0x1002a633
fld1
fstp qword [ebp - 0x1c]
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 3
push 0
push str.ScalePaperUnit
lea ecx, [ebp - 0x14]
call fcn.1000abd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x80
lea edx, [ebp - 0xa4]
push edx
push 0x47c
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.10007a30
add esp, 8
movzx edx, al
test edx, edx
jne 0x1002a68c
fld1
fstp qword [ebp - 0x1c]
push 8
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.ScaleDrawingUnit
lea ecx, [ebp - 0x14]
call fcn.1000abd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x47e
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
push eax
push str.ScaleFit
lea ecx, [ebp - 0x14]
call fcn.10006770
lea ecx, [ebp - 0x14]
call fcn.10006540
jmp 0x1002a810
push 0x466
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
jbe 0x1002a70f
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
add edx, 0x88
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x238]
mov dword [ecx + 0xc8], edx
jmp 0x1002a767
push 0x465
mov ecx, dword [ebp - 0xb8]
call fcn.10071210
test eax, eax
jbe 0x1002a746
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x238]
add eax, 8
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
mov dword [edx + 0xc8], eax
jmp 0x1002a767
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x238]
add ecx, 0x48
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x238]
mov dword [eax + 0xc8], ecx
push 0x474
mov ecx, dword [ebp - 0xb8]
call fcn.1007113c
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.10006120
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x238]
mov dword [edx + 0x110], eax
push 0x80
lea eax, [ebp - 0xa4]
push eax
push 0x476
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.10007a30
add esp, 8
movzx eax, al
test eax, eax
jne 0x1002a7d5
fldz
fstp qword [ebp - 0x1c]
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
push 0x478
mov ecx, dword [ebp - 0xb8]
call fcn.1007118f
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.10007a30
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x1002a810
fldz
fstp qword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100064f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10081238
mov esp, ebp
pop ebp
ret