Function at 0x45b240
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ccf48
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
lea eax, [esp + 0x28]
mov edi, ecx
mov esi, edx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
call fcn.00402e70
mov ebx, esi
mov dword [esp + 0x98], 0
call fcn.0045af10
xor eax, eax
xor ecx, ecx
mov word [esp + 0x78], cx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], ecx
mov ebx, ecx
js 0x45b3a9
lea edi, [ebx + ebx*2]
shl edi, 4
lea ebx, [ebx]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45b330
call fcn.004a68c5
mov eax, dword [esi + 0xc]
cmp dword [edi + eax], 0
je 0x45b365
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b358
call fcn.004a68c5
mov edx, dword [esi + 0xc]
mov eax, dword [edi + edx]
push eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b385
call fcn.004a68c5
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push 0
add ecx, edi
push edx
call fcn.00462f80
dec ebx
add esp, 8
sub edi, 0x30
test ebx, ebx
jge 0x45b310
mov edi, dword [esp + 0x1c]
mov eax, ebp
call fcn.00458640
mov edx, ebp
mov ecx, edi
call fcn.0045afa0
test al, al
jne 0x45b3f0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x45b3d0
push eax
call fcn.004a4a1a
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.004a4a1a
add esp, 4
xor al, al
jmp 0x45b78f
push str.SoftWareMicrosoftCTFHiddenDummyLayouts
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp byte [esp + 0xa4], 0
jne 0x45b5f0
mov ebx, dword [esp + 0x24]
add ebx, 0xffffffff
js 0x45b5f0
lea edi, [ebx + ebx*2]
shl edi, 4
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b445
call fcn.004a68c5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
cmp dword [edi + eax + 4], 0
mov eax, 0x2aaaaaab
je 0x45b4c3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45b46e
call fcn.004a68c5
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + ecx + 4]
push edx
lea eax, [esp + 0x7c]
push str._08x
push eax
call fcn.0045dcd0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp ebx, ecx
jb 0x45b4a8
call fcn.004a68c5
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 0x18]
push 0xa
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov dword [edi], eax
jmp 0x45b5d8
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45b4d8
call fcn.004a68c5
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + ecx + 8]
test eax, eax
je 0x45b5dc
push eax
lea edx, [esp + 0x7c]
push str._08x
push edx
call fcn.0045dcd0
add esp, 0xc
push 8
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b52b
call fcn.004a68c5
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
lea edx, [edx + edi + 0x10]
mov ecx, 0x4e64ac
call fcn.004151f0
test eax, eax
jne 0x45b55a
mov eax, dword [esp + 0x18]
lea edx, [eax + edi + 0x20]
mov ecx, 0x4e64ac
call fcn.004151f0
test eax, eax
je 0x45b589
mov ecx, dword [ebp + 0x10]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b579
call fcn.004a68c5
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [ecx + edx], eax
jmp 0x45b5d8
mov ecx, dword [ebp + 0x10]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45b5a8
call fcn.004a68c5
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x45b5ca
call fcn.004a68c5
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + edi + 8]
mov dword [eax + edx], ecx
mov edi, dword [esp + 0x18]
dec ebx
sub edi, 0x30
mov dword [esp + 0x18], edi
test ebx, ebx
jge 0x45b425
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov ebx, edi
call fcn.00458b30
test al, al
je 0x45b7b4
push edi
mov ecx, ebp
call fcn.0045a0e0
add esp, 4
mov ebx, ebp
mov ecx, edi
call fcn.0045aba0
push edi
mov ecx, ebp
call fcn.0045a990
add esp, 4
cmp byte [esp + 0xa4], 0
jne 0x45b761
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x45b68e
test eax, eax
ja 0x45b650
call fcn.004a68c5
mov esi, dword [ebp + 0xc]
mov ecx, 0xc
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x45b686
push eax
lea eax, [esp + 0x7c]
push str._08x
push eax
call fcn.0045dcd0
add esp, 0xc
push 0x10
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
jle 0x45b6bb
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x45b6b3
call fcn.004a68c5
mov ebx, dword [ebp + 0xc]
call fcn.0045c220
mov ebp, dword [esp + 0x44]
test ebp, ebp
jl 0x45b761
lea ebx, [ebp + ebp*2]
shl ebx, 4
mov edi, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x45b6f0
call fcn.004a68c5
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx], 0
je 0x45b725
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x45b718
call fcn.004a68c5
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx]
push edx
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x45b745
call fcn.004a68c5
mov ecx, dword [esi + 0xc]
push 0
add ecx, ebx
push edi
call fcn.00462f80
dec ebp
add esp, 8
sub ebx, 0x30
test ebp, ebp
jge 0x45b6d0
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x45b774
push eax
call fcn.004a4a1a
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.004a4a1a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004a4a25
add esp, 0x88
ret
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x45b7c7
push eax
call fcn.004a4a1a
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.004a4a1a
add esp, 4
xor al, al
jmp 0x45b78f