Function at 0x4059d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42433e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1220
call fcn.00422260
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x1230]
push eax
call fcn.00401bb0
cmp eax, edi
jl 0x405d76
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1230]
push edx
call fcn.004019b0
add esp, 8
test eax, eax
jne 0x405a38
mov eax, 0x80020009
jmp 0x405d76
mov ecx, esi
call fcn.00401b50
lea eax, [ebp - 0x1230]
push eax
mov ecx, esi
call fcn.00401bb0
cmp eax, edi
jl 0x405d76
movzx eax, word [ebp - 0x18]
cmp eax, 0x13
jg 0x405c77
je 0x405bbf
cmp eax, 8
je 0x405ba3
cmp eax, 0x11
jne 0x405d61
lea ecx, [ebp - 0x1230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test bl, 1
jne 0x405afb
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x12c]
call fcn.00405440
jmp 0x405aca
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x12c]
test edi, edi
jne 0x405b05
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x128]
cmp dword [ebp - 0x12c], edx
je 0x405afb
lea ecx, [ebp - 0x12c]
call fcn.00402b30
mov eax, 0x80004005
jmp 0x405d76
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor esi, esi
test ebx, ebx
jle 0x405b59
lea ecx, [ecx]
mov eax, esi
shr eax, 1
mov ecx, dword [ebp - 0x12c]
lea edi, [eax + ecx]
xor edx, edx
mov dl, byte [ebp + esi - 0x1230]
push edx
call fcn.00401a90
add esp, 4
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
inc esi
cmp esi, ebx
jl 0x405b20
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x128]
cmp dword [ebp - 0x12c], edx
je 0x405d4d
lea ecx, [ebp - 0x12c]
call fcn.00402b30
jmp 0x405d4d
push 1
lea eax, [ebp - 0x1230]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004018a0
mov esi, eax
jmp 0x405d4d
call dword [0x4341f8]
mov ebx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1230]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x405c0d
push edi
call fcn.00401350
add esp, 4
test al, al
je 0x405c0d
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00422260
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x405c16
push edi
lea ecx, [ebp - 0x14]
call fcn.00403cb0
push ebx
push esi
lea ecx, [ebp - 0x1230]
push ecx
push eax
call fcn.004014b0
test eax, eax
jne 0x405c42
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402a30
mov eax, 0x8007000e
jmp 0x405d76
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401880
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402a30
jmp 0x405d4d
cmp eax, 0x4008
jne 0x405d61
lea edx, [ebp - 0x1230]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x230]
call fcn.00405440
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x405d28
lea esi, [ebp - 0x1230]
mov al, byte [ebp - 0x1230]
test al, al
je 0x405d0e
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x405cf0
cmp byte [eax], 0x30
jne 0x405cf0
mov byte [edi], 0
inc edi
push eax
call ebx
mov esi, eax
jmp 0x405d09
mov byte [edi], cl
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x405d07
inc edi
inc esi
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
cmp byte [esi], 0
jne 0x405cd0
mov byte [edi], 0
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004018d0
mov esi, eax
jmp 0x405d2d
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x230], ecx
je 0x405d4d
lea ecx, [ebp - 0x230]
call fcn.00402b30
xor edi, edi
cmp esi, edi
je 0x405d5e
push esi
call fcn.00401670
add esp, 4
jmp 0x405d76
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, esi
call fcn.00401bb0
xor ecx, ecx
cmp eax, edi
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x123c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc