Function at 0x4030e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push ebx
xor ebx, ebx
push esi
push ebx
push dword [ebp + 8]
call section..text
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
je 0x4032a6
push edi
lea eax, [ebp - 0x44]
push 0xc
push eax
push esi
call fcn.00401077
movzx edi, word [ebp - 0x40]
xor eax, eax
add esp, 0xc
mov ah, byte [ebp - 0x40]
movzx eax, ax
shr edi, 8
or edi, eax
jbe 0x40329c
cmp ebx, 0x28
jae 0x40329c
lea eax, [ebp - 0x28]
push 0x10
push eax
push esi
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x40329c
cmp dword [ebp - 0x28], 0x656d616e
je 0x403168
inc ebx
cmp ebx, edi
jb 0x403135
jmp 0x40329c
mov eax, dword [ebp - 0x20]
mov edi, 0xff00
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, edi
shl eax, 0x10
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
push ecx
push esi
call fcn.00401114
lea eax, [ebp - 0x14]
push 6
push eax
push esi
call fcn.00401077
xor eax, eax
add esp, 0x14
mov al, byte [ebp - 0x11]
mov ah, byte [ebp - 0x12]
mov cx, ax
add eax, 0xffff
test cx, cx
je 0x40329c
movzx eax, ax
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push esi
call fcn.00401077
push esi
call fcn.00401103
mov ebx, eax
xor eax, eax
mov al, byte [ebp - 0xb]
add esp, 0x10
mov ah, byte [ebp - 0xc]
cmp ax, 1
jne 0x403293
xor eax, eax
mov al, byte [ebp - 5]
mov ah, byte [ebp - 6]
cmp ax, 4
jne 0x403293
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, edi
shl eax, 0x10
or edx, eax
movzx eax, word [ebp - 0x10]
shr ecx, 8
shl edx, 8
or ecx, edx
xor edx, edx
mov dh, byte [ebp - 0x10]
movzx edx, dx
shr eax, 8
or eax, edx
xor edx, edx
mov dh, byte [ebp - 2]
add ecx, eax
movzx eax, word [ebp - 2]
movzx edx, dx
shr eax, 8
or eax, edx
add ecx, eax
push ecx
push esi
call fcn.00401114
movzx eax, word [ebp - 4]
xor ecx, ecx
mov ch, byte [ebp - 4]
movzx ecx, cx
shr eax, 8
or eax, ecx
push eax
lea eax, [ebp - 0x148]
push eax
push esi
call fcn.00401077
movzx eax, word [ebp - 4]
xor ecx, ecx
push ebx
mov ch, byte [ebp - 4]
push esi
movzx ecx, cx
shr eax, 8
or eax, ecx
and byte [ebp + eax - 0x148], 0
call fcn.00401114
add esp, 0x1c
dec dword [ebp - 0x18]
jne 0x4031c6
push esi
call fcn.0040121f
pop ecx
xor ebx, ebx
pop edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x4032c2
push ebx
push ebx
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [ebp - 0x148], 0
je 0x403340
push 0x5c
push dword [ebp + 8]
call fcn.004081f0
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4032e0
inc esi
jmp 0x4032e3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x148]
push str.__TrueType_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x411bac], ebx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
je 0x403307
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea ecx, [ebp + 8]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403340
push esi
call fcn.00408080
pop ecx
push eax
push esi
push 1
lea eax, [ebp - 0x148]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret