Function at 0x409640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a4
mov eax, dword [0x467900]
mov dword [esp + 0x6a0], eax
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov byte [esp + 0x498], 0
mov ecx, 0x40
lea edi, [esp + 0x499]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x198], 0
mov ecx, 0x1f
lea edi, [esp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x418], 0
mov ecx, 0x1f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x5a0], 0
mov ecx, 0x40
lea edi, [esp + 0x5a1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x218], 0
mov ecx, 0x1f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x1f
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x298], 0
mov ecx, 0x1f
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x318], 0
mov ecx, 0x1f
lea edi, [esp + 0x319]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x98], 0
mov ecx, 0x1f
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x49c]
push eax
mov dword [esp + 0x18], 0
push 0x6e
mov ecx, dword [0x468d7c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push ecx
call esi
mov eax, dword [0x468d7c]
push 0x80
lea edx, [esp + 0x19c]
push edx
push 0x6f
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x41c]
push ecx
push 0x73
push edx
call esi
mov ecx, dword [0x468d7c]
push 0x80
lea eax, [esp + 0x5a4]
push eax
push 0x74
push ecx
call esi
mov eax, dword [0x468d7c]
push 0x80
lea edx, [esp + 0x1c]
push edx
push 0x75
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x11c]
push ecx
push 0x77
push edx
call esi
mov ecx, dword [0x468d7c]
push 0x80
lea eax, [esp + 0x21c]
push eax
push 0x7c
push ecx
call esi
mov eax, dword [0x468d7c]
push 0x80
lea edx, [esp + 0x29c]
push edx
push 0x7a
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x31c]
push ecx
push 0x7d
push edx
call esi
mov ecx, dword [0x468d7c]
push 0x80
lea eax, [esp + 0x9c]
push eax
push 0x84
push ecx
call esi
mov byte [esp + 0x398], 0
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x399]
rep stosd dword es:[edi], eax
push 0x80
lea edx, [esp + 0x39c]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [esp + 0x39c]
push eax
call fcn.004409e8
mov esi, eax
add esp, 8
test esi, esi
je 0x409920
lea ecx, [esp + 0x498]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098b2
sub ecx, edx
mov edx, ecx
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098c2
sub ecx, edi
lea ecx, [ecx + edx + 2]
cmp ecx, 0x104
jae 0x409920
lea edi, [esp + 0x498]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4098e0
mov dx, word [0x45498c]
lea eax, [esi + 1]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4098f7
lea edi, [esp + 0x498]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409908
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x4b4]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 4
push edi
lea eax, [ebx + 0x1e8]
push eax
push edi
push 0
lea ecx, [esp + 0x428]
push ecx
push edx
mov dword [esp + 0x28], edi
call esi
lea ecx, [ebx + 0xe4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x14], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409982
sub eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x14]
push 1
push 0
lea eax, [esp + 0x1a8]
push eax
push ecx
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0x1f4]
push edx
push edi
push 0
lea eax, [esp + 0x5b0]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0x1ec]
push edx
push edi
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0xb4]
push edx
push edi
push 0
lea eax, [esp + 0x2a8]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0xd0]
push edx
push edi
push 0
lea eax, [esp + 0xa8]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0xc]
push edx
push edi
push 0
lea eax, [esp + 0x128]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0xc]
push edi
lea edx, [ebx + 0xc0]
push edx
push edi
push 0
lea eax, [esp + 0x228]
push eax
push ecx
mov dword [esp + 0x28], edi
call esi
add ebx, 0xc4
mov dword [esp + 0x10], edi
mov dword [ebx], 0
push edi
mov eax, dword [esp + 0x10]
push ebx
push edi
push 0
lea edx, [esp + 0x328]
push edx
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x6ac]
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret