Function at 0x4054dd
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.0041f0a0
push 0xffffffffffffffff
push 0x432327
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44a078]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x2118]
xor ebx, ebx
mov esi, dword [ebp + 0x2110]
mov edi, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call fcn.00405c10
test eax, eax
js 0x40586d
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.0040540e
test eax, eax
jne 0x405573
mov eax, 0x80020009
jmp 0x40586d
mov ecx, dword [ebp - 0x20]
call fcn.004062a7
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x104]
push eax
call fcn.00405c10
test eax, eax
js 0x40586d
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x405822
sub eax, 9
je 0x4056fd
push 2
pop edi
sub eax, edi
je 0x4056cb
sub eax, 0x3ff5
jne 0x405859
lea eax, [ebp + 0x104]
push eax
call fcn.0042234b
pop ecx
add eax, edi
mov dword [ebp], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x4055fc
cmp eax, 0xffffffff
ja 0x4055fc
cmp eax, 0x100
jbe 0x4055f4
push eax
lea ecx, [ebp]
call fcn.00404f3a
jmp 0x405617
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x40561a
push 0x80070216
call fcn.004045ad
mov eax, 0x40560c
ret
mov esi, dword [ebp]
test esi, esi
je 0x4056b0
cmp word [ebp + 0x104], 0
lea eax, [ebp + 0x104]
mov dword [ebp - 0x14], eax
je 0x40566e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x405662
push 0x30
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 0x14]
jne 0x405662
xor eax, eax
push ecx
mov word [esi], ax
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x405667
mov word [esi], dx
add eax, edi
add esi, edi
cmp word [eax], bx
jmp 0x405630
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x40567d
push 0xd
jmp 0x4056b2
mov edi, ebx
mov ebx, esi
push ebx
call fcn.0042234b
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x405681
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp]
mov edi, eax
jmp 0x4056b3
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x40584c
lea ecx, [ebp]
call fcn.00404f25
jmp 0x40584c
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x40586d
mov eax, dword [ebp - 0x24]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push dword [ebp - 0x1c]
jmp 0x405842
lea eax, [ebp + 0x104]
push eax
call fcn.0042234b
mov dword [ebp - 0x28], eax
pop ecx
test al, 1
je 0x40571b
mov eax, 0x80004005
jmp 0x40586d
cdq
sub eax, edx
mov dword [ebp], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
ja 0x4055fc
cmp esi, 0x100
jbe 0x40574f
push esi
lea ecx, [ebp]
call fcn.00404f3a
jmp 0x405768
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x40576b
mov eax, dword [ebp]
test eax, eax
jne 0x405780
lea eax, [ebp + 4]
test eax, eax
je 0x405711
lea ecx, [ebp]
call fcn.00404f25
jmp 0x405711
push esi
push ebx
push eax
call fcn.0041fe40
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x4057f9
push 0x30
pop ecx
mov esi, ebx
mov eax, esi
cdq
sub eax, edx
movzx edx, word [ebp + esi*2 + 0x104]
sar eax, 1
add eax, dword [ebp]
mov dword [ebp - 0x28], eax
mov eax, edx
cmp eax, ecx
jb 0x4057d8
cmp eax, 0x39
jbe 0x4057d3
cmp eax, 0x40
jbe 0x4057d8
cmp eax, 0x46
jbe 0x4057ce
add eax, 0xffffff9f
cmp eax, 5
ja 0x4057d8
sub dl, 0x57
jmp 0x4057da
sub dl, 0x37
jmp 0x4057da
sub dl, 0x30
jmp 0x4057da
mov dl, bl
mov eax, esi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x28]
shl dl, cl
push 0x30
pop ecx
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x405797
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40584c
lea ecx, [ebp]
call fcn.00404f25
jmp 0x40584c
lea eax, [ebp + 0x104]
push eax
call fcn.0042234b
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x405859
mov ecx, edi
call fcn.00405c02
jmp 0x40586d
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
call fcn.00405c10
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.0041df7e
lea esp, [ebp + 0x2108]
pop ebp
ret 0xc