Function at 0x409700
Capabilities:
Delete registry key
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ddc0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa60
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa5c], edx
mov eax, dword [ebx + 8]
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm0, xmm0
mov dword [ebp - 0xa68], eax
mov eax, dword [ebx + 0x10]
movups xmmword [ebp - 0xa38], xmm0
mov dword [ebp - 0xa6c], eax
mov eax, dword [ebx + 0x18]
movups xmmword [ebp - 0xa48], xmm0
push str.kernel32.dll
movq qword [ebp - 0xa28], xmm0
mov dword [ebp - 0xa64], eax
mov dword [ebp - 0xa48], edi
mov dword [ebp - 0xa40], edi
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa34], edi
mov dword [ebp - 0xa30], edi
mov dword [ebp - 0xa2c], edi
mov dword [ebp - 0xa28], edi
mov dword [ebp - 0xa24], edi
call esi
mov dword [ebp - 0xa44], eax
test eax, eax
je 0x40986a
push str.apphelp.dll
call esi
mov edi, eax
mov dword [ebp - 0xa48], edi
test edi, edi
je 0x40986a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BaseFlushAppcompatCache
push dword [ebp - 0xa44]
call esi
mov dword [ebp - 0xa28], eax
test eax, eax
je 0x40986a
push str.SdbOpenDatabase
push edi
call esi
mov dword [ebp - 0xa30], eax
test eax, eax
je 0x40986a
push str.SdbCloseDatabase
push edi
call esi
mov dword [ebp - 0xa40], eax
test eax, eax
je 0x40986a
push str.SdbRegisterDatabaseEx
push edi
call esi
mov dword [ebp - 0xa38], eax
test eax, eax
je 0x40986a
push str.SdbUnregisterDatabase
push edi
call esi
mov dword [ebp - 0xa34], eax
test eax, eax
je 0x40986a
push str.SdbFindFirstTag
push edi
call esi
mov dword [ebp - 0xa2c], eax
test eax, eax
je 0x40986a
push str.ShimFlushCache
push edi
call esi
mov dword [ebp - 0xa24], eax
mov ecx, dword [ebp - 0xa64]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0xa34]
mov dword [ecx], 8
test esi, esi
je 0x4098a0
mov eax, dword [ebp - 0xa5c]
movups xmm0, xmmword [eax]
lea eax, [ebp - 0xa58]
push eax
movups xmmword [ebp - 0xa58], xmm0
call esi
push 0x800
lea eax, [ebp - 0xa20]
push 0
push eax
call fcn.00423950
mov esi, dword [ebp - 0xa68]
lea eax, [ebp - 0xa20]
add esp, 0xc
push esi
push 0x46fe48
push 0x400
push eax
call fcn.00409f70
add esp, 0x10
lea eax, [ebp - 0xa20]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xa64]
mov byte [ebp - 0xa5d], 1
mov dword [ebp - 0xa5c], 0
mov dword [eax], 0xb
lea eax, [ebp - 0xa5c]
push eax
push 0xf013f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCustom
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409930
mov byte [ebp - 0xa5d], 0
jmp 0x409997
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00423950
add esp, 0xc
lea eax, [ebp - 0x220]
push str..sdb
push esi
push str._ws_ws
push 0x104
push eax
call fcn.00409fd0
mov esi, dword [ebx + 0x14]
add esp, 0x14
test esi, esi
je 0x40998b
mov edi, dword [ebp - 0xa6c]
push dword [edi]
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
sub esi, 1
jne 0x409972
mov edi, dword [ebp - 0xa48]
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xa64]
xor esi, esi
mov dword [eax], 0x12
mov eax, dword [ebp - 0xa24]
test eax, eax
je 0x4099b7
push esi
push esi
push esi
push esi
call eax
mov esi, eax
mov eax, dword [ebp - 0xa28]
test eax, eax
je 0x4099cb
call eax
test eax, eax
je 0x4099cb
test esi, esi
jne 0x4099d2
mov byte [ebp - 0xa5d], 0
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
push dword [ebp - 0xa44]
call esi
mov al, byte [ebp - 0xa5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret