Function at 0x404940
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x430f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00429279
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 0
call fcn.00429279
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 1
call fcn.00429279
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x50], 2
call fcn.00429279
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x518]
push eax
lea ecx, [esp + 0x24]
push 0x432de8
push ecx
mov byte [esp + 0x5c], 3
call fcn.00402d10
mov edx, dword [esi + 0x51c]
push edx
lea eax, [esp + 0x24]
push 0x432de8
push eax
call fcn.00402d10
mov ecx, dword [esi + 0x528]
push ecx
lea edx, [esp + 0x34]
push 0x432de8
push edx
call fcn.00402d10
mov eax, dword [esi + 0x52c]
push eax
lea ecx, [esp + 0x44]
push 0x432de8
push ecx
call fcn.00402d10
add esp, 0x30
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push 0x432ee8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [esp + 0x20]
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x48], esp
mov edi, esp
push eax
mov dword [esp + 0x30], eax
call fcn.00402630
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov ecx, esi
call fcn.004027a0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov edi, esp
push eax
mov dword [esp + 0x2c], eax
call fcn.00402630
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004027a0
mov ebp, dword [esp + 0x18]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x48], esp
mov edi, esp
push ebp
mov dword [esp + 0x3c], eax
call fcn.00402630
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004027a0
mov edi, dword [esp + 0x1c]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x48], esp
mov dword [esp + 0x30], esp
push edi
mov dword [esp + 0x44], eax
call fcn.00402630
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, esi
call fcn.004027a0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
mov ebx, dword [ebx - 0xc]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0xc]
mov dword [esp + 0x44], eax
lea eax, [ebx + 1]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov eax, dword [esp + 0x34]
inc ecx
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edx - 0xc]
push 1
inc ecx
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x20]
push 0x432ee0
push ecx
call ebx
test eax, eax
je 0x404b50
push 0
push 0
push 0x432ecc
mov ecx, esi
call fcn.00425036
mov byte [esp + 0x50], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x404bb7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push 0x432ec0
push edx
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push 0x432ebc
push edx
call ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push 0x432eb8
push edx
call ebx
mov ecx, esi
call fcn.004257a0
mov byte [esp + 0x50], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404bc1
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov byte [esp + 0x50], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404bde
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret