Function at 0x4074d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.00408fa0
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], esi
call fcn.00408fa0
lea eax, [esp + 0x20]
push eax
mov ecx, str.SpesmarlIlnclzs
mov byte [esp + 0x34], 1
call fcn.00409b90
mov eax, dword [eax]
add esp, 4
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000002
call dword [0x430034]
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4076a2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x20]
push edx
mov ecx, str.UMsa
lea edi, [eax + eax + 2]
call fcn.00409b90
add esp, 4
mov ebx, eax
mov byte [esp + 0x30], 2
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4075c2
xor eax, eax
lea ecx, [esp + 0x1c]
call fcn.00403ef0
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov ebx, dword [0x430004]
push edi
push edx
push 1
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call ebx
test eax, eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
sete byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x40768f
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x20]
push edx
mov ecx, str.PLgl
lea esi, [eax + eax + 2]
call fcn.00409b90
add esp, 4
mov edi, eax
mov byte [esp + 0x30], 3
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x407655
xor eax, eax
lea ecx, [esp + 0x18]
call fcn.00403ef0
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push esi
push edx
push 1
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call ebx
neg eax
sbb esi, esi
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40768f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x430040]
mov dword [esp + 0x14], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4076c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret