Function at 0x402600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ec16
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.0040ad10
mov eax, dword [0x45d1d4]
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 dword [ebp - 0x112c], ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1128], ebx
mov dword [ebp - 0x1124], edi
call fcn.004058c0
test eax, eax
js 0x402b6b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1014]
push 0x4504a4
push eax
call esi
test eax, eax
jne 0x40268e
lea esi, [eax + 8]
jmp 0x4026d7
push 0x4504ac
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x4026a7
mov esi, 0x4008
jmp 0x4026d7
push 0x4504b4
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x4026be
lea esi, [eax + 0x13]
jmp 0x4026d7
push 0x4504bc
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x402b66
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x112c]
call fcn.004070d0
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.004058c0
test eax, eax
js 0x402b6b
cmp esi, 0x13
ja 0x4029f9
je 0x4028ad
cmp esi, 8
je 0x40287c
cmp esi, 0x11
jne 0x402b4a
lea ebx, [ebp - 0x1014]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402726
sub ebx, ecx
mov dword [ebp - 0x1130], ebx
test bl, 1
jne 0x4027c5
mov eax, ebx
mov dword [ebp - 0x1118], 0
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp ecx, 0x100
jbe 0x4027aa
push ecx
lea ecx, [ebp - 0x1118]
call fcn.00402c90
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1120]
jmp 0x4027b6
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
test eax, eax
jne 0x4027cf
lea ecx, [ebp - 0x1118]
call fcn.00404990
mov eax, 0x80004005
jmp 0x402b6b
push ecx
push 0
push eax
call fcn.0040bad0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x402834
mov dl, byte [ebp + edi - 0x1014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1118]
movsx eax, dl
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x402804.58
movzx eax, byte [eax + 0x402ba0]
jmp dword [eax*4 + 0x402b90]
sub dl, 0x30
jmp 0x40281c
sub dl, 0x37
jmp 0x40281c
sub dl, 0x57
jmp 0x40281c
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x4027e1
push dword [ebp - 0x1120]
mov eax, dword [ebp - 0x1128]
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x402b3b
lea ecx, [ebp - 0x1118]
call fcn.00404990
jmp 0x402b3b
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402885
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x402b3b
xor esi, esi
mov dword [ebp - 0x111c], esi
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028c5
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
call fcn.00402320
add esp, 0xc
test eax, eax
js 0x4029d7
mov edi, dword [ebp - 0x1120]
cmp edi, 0x400
jg 0x40291a
push edi
call fcn.00408260
add esp, 4
test al, al
je 0x40291a
mov eax, edi
call fcn.0040ace0
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x40292e
push edi
lea ecx, [ebp - 0x111c]
call fcn.00402be0
mov esi, dword [ebp - 0x111c]
mov ebx, eax
test ebx, ebx
je 0x4029d7
shr edi, 1
xor eax, eax
push edi
push ebx
push 0xffffffffffffffff
mov word [ebx], ax
lea eax, [ebp - 0x1014]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4029d7
lea eax, [ebp - 0x1130]
push eax
push 0
push 0
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
jns 0x40298c
test esi, esi
je 0x402985
push esi
mov esi, dword [esi]
call fcn.00416382
add esp, 4
test esi, esi
jne 0x402976
mov eax, edi
jmp 0x402b6b
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test esi, esi
je 0x402b3b
push esi
mov esi, dword [esi]
call fcn.00416382
add esp, 4
test esi, esi
jne 0x4029c3
jmp 0x402b3b
test esi, esi
je 0x4029ef
nop dword [eax + eax]
push esi
mov esi, dword [esi]
call fcn.00416382
add esp, 4
test esi, esi
jne 0x4029e0
mov eax, 0x8007000e
jmp 0x402b6b
cmp esi, 0x4008
jne 0x402b4a
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a10
sub ecx, edx
mov dword [ebp - 0x1118], 0
add ecx, 2
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp ecx, 0x100
jbe 0x402a67
push ecx
lea ecx, [ebp - 0x1118]
call fcn.00402c30
mov edi, dword [ebp - 0x1118]
jmp 0x402a73
lea edi, [ebp - 0x1114]
mov dword [ebp - 0x1118], edi
test edi, edi
je 0x402b21
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x402acb
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x402aa9
cmp byte [eax], 0x30
jne 0x402aa9
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x402ac5
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x402ac4
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x402acb
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x402a90
mov word [edi], 0
mov edi, dword [ebp - 0x1118]
test edi, edi
jne 0x402adf
lea ebx, [edi + 0xd]
jmp 0x402b26
xor esi, esi
mov edx, edi
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ae8
sub ecx, ebx
lea eax, [ecx + 1]
add edx, eax
add esi, eax
cmp eax, 1
jne 0x402ae3
mov eax, dword [ebp - 0x1128]
push esi
push edi
push 7
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x1118]
mov ebx, eax
jmp 0x402b26
mov ebx, 0xe
lea eax, [ebp - 0x1114]
cmp edi, eax
je 0x402b3b
lea ecx, [ebp - 0x1118]
call fcn.00404970
test ebx, ebx
je 0x402b4a
push ebx
call fcn.00402e10
add esp, 4
jmp 0x402b6b
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x112c]
call fcn.004058c0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x402b6b
mov eax, 0x80020009
lea esp, [ebp - 0x1144]
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.0040acca
mov esp, ebp
pop ebp
ret 0xc