Function at 0x421120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471747
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov edi, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edi
call fcn.0041e3d0
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
xor esi, esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x320], esi
call fcn.0041f9f0
mov ecx, dword [edi + 0xc]
mov byte [esp + 0x318], 1
call fcn.0043bdb0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4213a6
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
test eax, eax
je 0x4213a6
lea eax, [esp + 0x6c]
shr eax, 0x10
mov dword [esp + 0x48], eax
jmp 0x4211e4
mov eax, dword [esp + 0x48]
mov edi, dword [0x48f014]
mov dword [esp + 0x14], edi
test ax, ax
jne 0x421287
lea ecx, [esp + 0x6c]
movzx eax, cx
push eax
lea ecx, [esp + 0x18]
call fcn.0041c9b0
mov edi, dword [esp + 0x14]
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 2
call fcn.0041e440
mov eax, dword [eax]
push 0x478770
push eax
call fcn.00457f98
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
sete bl
cmp ecx, dword [0x48f010]
je 0x421268
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x421268
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00457d84
add esp, 4
test bl, bl
je 0x421355
mov esi, dword [edi - 8]
push 0x5c
push edi
call fcn.004571ea
add esp, 8
test eax, eax
jne 0x4212d4
or eax, 0xffffffff
jmp 0x4212d8
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x42120c
push esi
lea ecx, [esp + 0x18]
call fcn.0041a660
test eax, eax
je 0x421208
lea eax, [esi + esi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x421208
mov edi, dword [esp + 0x14]
push eax
lea edx, [esp + 0x70]
push edx
push edi
call fcn.00457840
add esp, 0xc
jmp 0x42120c
sub eax, edi
sar eax, 1
sub esi, eax
dec esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041e440
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], 0
mov byte [esp + 0x318], 3
je 0x421328
lea ecx, [esp + 0x1c]
call fcn.0041aca0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00420830
mov dword [eax], 1
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
mov byte [esp + 0x318], 2
cmp edx, dword [0x48f010]
je 0x421355
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x421355
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [edi - 0xc]
mov byte [esp + 0x318], 1
cmp eax, dword [0x48f010]
je 0x421387
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x421387
push esi
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
test eax, eax
jne 0x4211e0
mov edi, dword [esp + 0x2c]
xor esi, esi
lea ecx, [esp + 0x30]
call fcn.0042df90
mov ebp, dword [esp + 0x28]
cmp dword [ebp - 0xc], esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ecx
lea ebx, [ebp - 0xc]
mov byte [esp + 0x324], 4
mov dword [esp + 0x38], esp
mov ecx, esp
jl 0x4213df
push ebx
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4213ec
mov eax, dword [0x48f014]
push ebp
mov dword [ecx], eax
call fcn.0041c500
mov ecx, edi
call fcn.00420d80
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x42142d
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ecx + esi*4]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x42140c
xor esi, esi
cmp ecx, esi
je 0x42144f
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push edx
push ecx
call fcn.0041e130
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0044e790
add esp, 0x14
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.0044e790
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x318], 0
call fcn.004203d0
add ebp, 0xfffffff4
cmp ebp, dword [0x48f010]
je 0x421498
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421498
push ebx
call fcn.00457d84
add esp, 4
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0045715c
add esp, 0x308
ret