Function at 0x403230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b81
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1130
call fcn.0040bee0
mov eax, dword [0x41c060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x113c], ecx
lea eax, [ebp - 0x1018]
mov ecx, esi
mov dword [ebp - 0x1138], esi
mov dword [ebp - 0x1130], edi
mov dword [ebp - 0x1124], 0
call fcn.00402ad0
test eax, eax
jl 0x4036ce
lea edx, [ebp - 0x1124]
push edx
lea ebx, [ebp - 0x1018]
call fcn.00403700
add esp, 4
test eax, eax
jne 0x4032c8
mov eax, 0x80020009
jmp 0x4036ce
call fcn.00403b10
lea eax, [ebp - 0x1018]
mov ecx, esi
call fcn.00402ad0
xor ebx, ebx
cmp eax, ebx
jl 0x4036ce
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x40358e
je 0x403482
cmp eax, 8
je 0x403450
cmp eax, 0x11
jne 0x4036b5
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x1124], ebx
jne 0x4033b4
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1120], eax
cmp eax, eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
ja 0x403353
cmp edi, 0xffffffff
jbe 0x40335d
push 0x80070057
call fcn.00404780
cmp edi, 0x100
jbe 0x403389
lea ecx, [ebp - 0x1120]
push ecx
mov eax, edi
call fcn.00403810
jmp 0x403395
lea edx, [ebp - 0x111c]
mov dword [ebp - 0x1120], edx
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x4033be
lea eax, [ebp - 0x111c]
test eax, eax
je 0x4033b4
lea eax, [ebp - 0x1120]
call fcn.004037b0
mov eax, 0x80004005
jmp 0x4036ce
push edi
push 0
push eax
call fcn.0040a1a0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x40340a
mov edx, dword [ebp - 0x1120]
mov ecx, esi
shr ecx, 1
lea ebx, [ecx + edx]
mov cl, byte [ebp + esi - 0x1018]
call fcn.00403830
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
add esi, 1
or byte [ebx], al
cmp esi, dword [ebp - 0x1124]
jl 0x4033d0
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1130]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x4036a0
lea eax, [ebp - 0x1120]
call fcn.004037b0
jmp 0x4036a0
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi]
add eax, 1
push eax
mov eax, dword [ebp - 0x112c]
lea edx, [ebp - 0x1018]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x4036a0
call dword [section..data]
mov edi, eax
mov dword [ebp - 0x1124], ebx
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push ebx
mov dword [ebp - 0x1128], eax
cdq
push 2
push edx
push eax
call fcn.00411ca0
cmp edx, ebx
jg 0x403526
jl 0x4034c5
cmp eax, 0x7fffffff
ja 0x403526
push edx
push eax
lea ecx, [ebp - 0x1128]
call fcn.00401f60
add esp, 8
cmp eax, ebx
jl 0x403526
mov ebx, dword [ebp - 0x1128]
cmp ebx, 0x400
jg 0x403502
push ebx
call fcn.00401fb0
add esp, 4
test al, al
je 0x403502
mov eax, ebx
call fcn.00412100
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x403511
mov eax, ebx
lea esi, [ebp - 0x1124]
call fcn.00402060
mov esi, eax
mov ecx, ebx
shr ecx, 1
mov edx, edi
lea eax, [ebp - 0x1018]
call fcn.00401f80
test eax, eax
jne 0x40353b
lea esi, [ebp - 0x1124]
call fcn.00401a30
mov eax, 0x8007000e
jmp 0x4036ce
lea ecx, [ebp - 0x1134]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x112c]
push 4
lea eax, [ebp - 0x1128]
push eax
push 4
mov dword [ebp - 0x1128], edx
mov edx, dword [ebp - 0x1130]
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1124]
mov ebx, eax
call fcn.00401a30
jmp 0x4036a0
cmp eax, 0x4008
jne 0x4036b5
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], ebx
xor ecx, ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
ja 0x4035c1
cmp eax, 0xffffffff
jbe 0x4035cb
push 0x80070057
call fcn.00404780
cmp eax, 0x100
jbe 0x4035e8
lea edx, [ebp - 0x1120]
push edx
call fcn.00403810
jmp 0x4035f4
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov ebx, dword [ebp - 0x1120]
test ebx, ebx
je 0x403682
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x40365d
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x403633
cmp byte [eax], 0x30
jne 0x403633
mov byte [ebx], 0
push eax
add ebx, 1
call edi
mov esi, eax
jmp 0x403658
mov byte [ebx], cl
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403652
mov al, byte [esi + 1]
add esi, 1
add ebx, 1
test al, al
je 0x40365d
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x403617
mov eax, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0x1130]
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov edx, dword [ebp - 0x1120]
push edx
push eax
push ecx
call fcn.004037c0
mov ebx, eax
jmp 0x403687
mov ebx, 0xe
lea edx, [ebp - 0x111c]
cmp dword [ebp - 0x1120], edx
je 0x4036a0
lea eax, [ebp - 0x1120]
call fcn.004037b0
test ebx, ebx
je 0x4036ad
mov eax, ebx
call fcn.00403b00
jmp 0x4036ce
mov esi, dword [ebp - 0x1138]
xor ebx, ebx
mov eax, dword [ebp - 0x113c]
mov ecx, esi
call fcn.00402ad0
xor ecx, ecx
cmp eax, ebx
setge cl
sub ecx, 1
and eax, ecx
lea esp, [ebp - 0x1150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409967
mov esp, ebp
pop ebp
ret 8