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

Disassembly:
push 0xffffffffffffffff
push 0x56c3e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esi + 0x14c], edx
mov dword [esi + 0x150], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov edx, dword [0x5d2a60]
mov ecx, 0x5d2a60
mov byte [esp + 0x40], 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x5d2a60
call dword [edx + 4]
mov eax, dword [0x5cb0cc]
mov bl, 3
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x506ef2
cmp dword [0x5cb0c8], edi
jne 0x506ef2
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x40], 4
je 0x506ec8
mov ecx, eax
call fcn.0045e9d0
jmp 0x506eca
xor eax, eax
mov dword [0x5cb0c8], eax
mov eax, dword [0x5b5c48]
push eax
push 0x41ebd0
mov ecx, 0x5d0190
mov byte [esp + 0x48], bl
call fcn.00406500
mov dword [0x5cb0cc], 1
mov edx, dword [0x5d2a60]
mov esi, dword [0x5cb0c8]
mov ecx, 0x5d2a60
mov byte [esp + 0x40], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [eax + 8]
test eax, eax
mov eax, dword [esp + 0xc]
jl 0x5072da
cmp eax, edi
je 0x5072da
push 0x5bd028
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00423a70
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x18], edi
je 0x5072c9
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x20], 0x5d2ac0
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x40], 5
cmp eax, edi
jne 0x506fce
cmp dword [0x5cb044], edi
jne 0x506fce
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x40], 6
je 0x506fa2
push edi
mov ecx, eax
call fcn.00414150
jmp 0x506fa4
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x40], 5
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x40], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x9c]
test eax, eax
jl 0x5072c9
cmp dword [esp + 0x10], edi
je 0x5072c9
mov edx, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x5d2ac0
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov bl, 7
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x507086
cmp dword [0x5cb044], edi
jne 0x507086
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 8
je 0x50705c
push edi
mov ecx, eax
call fcn.00414150
jmp 0x50705e
xor eax, eax
mov dword [0x5cb044], eax
mov eax, dword [0x5b4b90]
push eax
push 0x406940
mov ecx, 0x5d0190
mov byte [esp + 0x48], bl
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x40], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [eax + 0xb8]
cmp dword [esp + 0x1c], edi
je 0x5072c9
push 0x5d2ac0
lea ecx, [esp + 0x24]
call fcn.00410470
mov eax, dword [0x5cb048]
mov bl, 9
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x50712b
cmp dword [0x5cb044], edi
jne 0x50712b
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xa
je 0x507100
push edi
mov ecx, eax
call fcn.00414150
jmp 0x507102
xor eax, eax
mov edx, dword [0x5b4b90]
mov ecx, 0x5d0190
push edx
push 0x406940
mov byte [esp + 0x48], bl
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5cb044]
mov byte [esp + 0x40], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.0047cc70
cmp eax, 4
je 0x5071ef
cmp dword [0x5d02b4], edi
je 0x50723a
push 0x5d2ac0
lea ecx, [esp + 0x24]
call fcn.00410470
mov eax, dword [0x5cb048]
mov bl, 0xb
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x5071cf
cmp dword [0x5cb044], edi
jne 0x5071cf
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xc
je 0x5071a4
push edi
mov ecx, eax
call fcn.00414150
jmp 0x5071a6
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x40], bl
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5cb044]
mov byte [esp + 0x40], 2
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, esi
call fcn.0047cc70
cmp eax, 5
jne 0x50723a
push 0x5b761c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
mov byte [esp + 0x40], 0xd
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push str.replay
push str.SOFTWAREStorm
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
push 0x5d2a80
lea ecx, [esp + 0x24]
call fcn.00410470
mov eax, dword [0x5cb0c0]
mov bl, 0xe
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x5072ae
cmp dword [0x5cb0bc], edi
jne 0x5072ae
push 0x1044
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xf
je 0x507283
push edi
mov ecx, eax
call fcn.0041c900
jmp 0x507285
xor eax, eax
mov edx, dword [0x5b5894]
mov ecx, 0x5d0190
push edx
push 0x41c8d0
mov byte [esp + 0x48], bl
mov dword [0x5cb0bc], eax
call fcn.00406500
mov dword [0x5cb0c0], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5cb0bc]
mov byte [esp + 0x40], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.0051bce0
push edi
call fcn.0041e9e0
mov ecx, eax
call fcn.0051c9d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x40], 1
cmp ecx, edi
je 0x5072f1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, edi
pop edi
pop esi
mov byte [esp + 0x38], 0
pop ebx
je 0x507303
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.0046ca80
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret