Function at 0x402630
Capabilities:
Set registry value

Disassembly:
sub esp, 0x174
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x19c]
push ebx
mov ebx, dword [esp + 0x17c]
mov dword [esp + 0xc], eax
mov eax, ebx
push ebp
mov ebp, dword [esp + 0x19c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402677
sub eax, edx
je 0x402a21
cmp eax, 0x1e
jg 0x402a21
push esi
push edi
push 0xf9
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00404100
push 0x63
lea eax, [esp + 0x12c]
push 0
push eax
call fcn.00404100
mov eax, dword [0x40d214]
mov ecx, dword [str.SOFTWARENalpeiron_]
mov edx, dword [0x40d210]
mov dword [esp + 0x40], eax
mov al, byte [ebx]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x40d218]
mov dword [esp + 0x3c], edx
mov edx, dword [0x40d21c]
add esp, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
cmp al, 0x2a
je 0x402884
cmp al, 0x23
je 0x402890
mov eax, ebx
mov edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402700
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402710
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
push eax
and ecx, 3
push 0x20006
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402767
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x402a1a
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x190]
push ecx
push 4
push 0
push 0x40d208
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x194]
push eax
push 4
push 0
push 0x40d204
push ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x198]
push edx
push 4
push 0
push 0x40d200
push eax
call esi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x19c]
push ecx
push 4
push 0
push 0x40d1fc
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1a0]
push eax
push 4
push 0
push 0x40d1f8
push ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x1a4]
push edx
push 4
push 0
push 0x40d1f4
push eax
call esi
mov eax, ebp
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402810
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 1
push 0
push 0x40d1f0
push ecx
call esi
mov edi, dword [esp + 0x18]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402834
mov edx, dword [esp + 0x10]
sub eax, ecx
push eax
push edi
push 1
push 0
push 0x40d1ec
push edx
call esi
mov edi, dword [esp + 0x1c]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402858
sub eax, ecx
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push str.Date
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4028d3
mov dword [esp + 0x14], 2
cmp al, 0x23
jne 0x402898
mov dword [esp + 0x14], 1
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028a0
sub eax, edx
mov edx, eax
cmp edx, 1
jl 0x4028b9
lea esi, [ebx + 1]
mov ecx, edx
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
dec edx
mov eax, 1
cmp edx, eax
jl 0x4028ce
cmp byte [ebx + eax], 0x2d
je 0x4028ec
inc eax
cmp eax, edx
jle 0x4028c3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004040e4
add esp, 0x174
ret
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
lea edx, [esp + 0x11c]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402900
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402910
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402920
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0x20006
mov ecx, eax
push 0
lea eax, [esp + 0x2c]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x402971
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x4029cd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x402a1a
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x190]
push edx
push 4
push eax
lea eax, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4028d3
cmp eax, 2
jne 0x402a1a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x402a1a
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029f6
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
lea edx, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, esi
jmp 0x4028d3
mov ecx, dword [esp + 0x178]
pop ebp
pop ebx
xor ecx, esp
mov eax, 2
call fcn.004040e4
add esp, 0x174
ret