Function at 0x402876
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00408110
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402b24
cmp eax, esi
jae 0x402b24
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], ebx
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], ebx
call fcn.004041f6
test eax, eax
je 0x402b19
lea ecx, [ebp - 0x214]
cmp dword [ebp - 0x220], ebx
jne 0x402910
push 0x420060
call fcn.00403071
mov esi, dword [ebp - 0x214]
jmp 0x402ab7
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
call fcn.004030d0
lea ecx, [ebp - 0x218]
call fcn.004030d0
push 0x421184
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push str.StringFileInfo_08lx_s
push eax
call fcn.004056b0
add esp, 0x10
lea ecx, [ebp - 0x218]
push ebx
call fcn.00403123
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp - 0x220]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402a57
cmp dword [ebp - 0x224], ebx
je 0x402a57
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x402a55
push ebx
call fcn.0040fc18
mov edi, eax
pop ecx
test edi, edi
jne 0x4029b1
lea ecx, [ebp - 0x214]
call fcn.0040315f
jmp 0x402a55
mov eax, dword [ebp - 0x214]
mov ecx, ebx
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x214]
mov esi, dword [eax - 0xc]
push edi
call fcn.00403123
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
cmp edx, esi
ja 0x402a35
mov ecx, dword [ebp - 0x214]
lea edx, [eax + edx*2]
mov esi, dword [ecx - 8]
lea ecx, [edi + edi]
test ecx, ecx
je 0x402a49
test eax, eax
jne 0x402a0b
call fcn.0040dedb
mov dword [eax], 0x16
call fcn.0040de1e
jmp 0x402a49
test edx, edx
je 0x4029f9
lea eax, [esi + esi]
cmp eax, ecx
jae 0x402a23
call fcn.0040dedb
mov dword [eax], 0x22
jmp 0x402a04
push ecx
push edx
push dword [ebp - 0x234]
call fcn.0040a180
add esp, 0xc
jmp 0x402a49
mov edx, dword [ebp - 0x214]
mov ecx, eax
push edi
push ebx
mov edx, dword [edx - 8]
call fcn.0040355c
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x214]
call fcn.004032db
xor ebx, ebx
mov eax, dword [ebp - 0x218]
push dword [eax - 8]
push eax
call fcn.0040fd40
mov edx, eax
pop ecx
pop ecx
test edx, edx
js 0x402b33
mov ecx, dword [ebp - 0x218]
cmp edx, dword [ecx - 8]
jg 0x402b33
mov edi, dword [ebp - 0x214]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x218]
mov word [eax + edx*2], cx
lea ecx, [edi - 0x10]
call fcn.00403448
mov ecx, dword [ebp - 0x218]
lea esi, [eax + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401252
lea ecx, [edi - 0x10]
call fcn.00401252
cmp dword [esi - 0xc], 0
je 0x402b11
cmp dword [esi - 0xc], 7
jl 0x402b11
push ebx
lea eax, [ebp - 0x22c]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x4212a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402b11
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push 0x421498
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401252
lea ecx, [ebp - 0x220]
call fcn.004041e2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c07
leave
ret
push 0x80070057
call fcn.00401067
int3