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

Disassembly:
push 0xffffffffffffffff
push 0x582b12
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 [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x40], 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x5ed8c0
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 3
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x5113f2
cmp dword [0x5e5d2c], edi
jne 0x5113f2
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x40], 4
je 0x5113c8
mov ecx, eax
call fcn.00464f50
jmp 0x5113ca
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x48], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
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 0x5117da
cmp eax, edi
je 0x5117da
push 0x5d7670
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00427500
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 0x5117c9
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x20], 0x5ed920
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov byte [esp + 0x40], 5
cmp eax, edi
jne 0x5114ce
cmp dword [0x5e5cb4], edi
jne 0x5114ce
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x40], 6
je 0x5114a2
push edi
mov ecx, eax
call fcn.00414650
jmp 0x5114a4
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x40], 5
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov esi, dword [0x5e5cb4]
mov ecx, 0x5ed920
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 0x5117c9
cmp dword [esp + 0x10], edi
je 0x5117c9
mov edx, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x5ed920
call dword [edx + 4]
mov eax, dword [0x5e5cb8]
mov bl, 7
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x511586
cmp dword [0x5e5cb4], edi
jne 0x511586
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 8
je 0x51155c
push edi
mov ecx, eax
call fcn.00414650
jmp 0x51155e
xor eax, eax
mov dword [0x5e5cb4], eax
mov eax, dword [0x5cebb0]
push eax
push 0x406a50
mov ecx, 0x5eafa0
mov byte [esp + 0x48], bl
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov esi, dword [0x5e5cb4]
mov ecx, 0x5ed920
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 0x5117c9
push 0x5ed920
lea ecx, [esp + 0x24]
call fcn.0040f8c0
mov eax, dword [0x5e5cb8]
mov bl, 9
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x51162b
cmp dword [0x5e5cb4], edi
jne 0x51162b
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xa
je 0x511600
push edi
mov ecx, eax
call fcn.00414650
jmp 0x511602
xor eax, eax
mov edx, dword [0x5cebb0]
mov ecx, 0x5eafa0
push edx
push 0x406a50
mov byte [esp + 0x48], bl
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5e5cb4]
mov byte [esp + 0x40], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.00483880
cmp eax, 4
je 0x5116ef
cmp dword [0x5eb0c4], edi
je 0x51173a
push 0x5ed920
lea ecx, [esp + 0x24]
call fcn.0040f8c0
mov eax, dword [0x5e5cb8]
mov bl, 0xb
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x5116cf
cmp dword [0x5e5cb4], edi
jne 0x5116cf
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xc
je 0x5116a4
push edi
mov ecx, eax
call fcn.00414650
jmp 0x5116a6
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x40], bl
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5e5cb4]
mov byte [esp + 0x40], 2
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, esi
call fcn.00483880
cmp eax, 5
jne 0x51173a
push 0x5d1964
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 0x5ed8e0
lea ecx, [esp + 0x24]
call fcn.0040f8c0
mov eax, dword [0x5e5d38]
mov bl, 0xe
cmp eax, edi
mov byte [esp + 0x40], bl
jne 0x5117ae
cmp dword [0x5e5d34], edi
jne 0x5117ae
push 0x13e4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x40], 0xf
je 0x511783
push edi
mov ecx, eax
call fcn.0041db10
jmp 0x511785
xor eax, eax
mov edx, dword [0x5cf9c0]
mov ecx, 0x5eafa0
push edx
push 0x41dae0
mov byte [esp + 0x48], bl
mov dword [0x5e5d34], eax
call fcn.00406600
mov dword [0x5e5d38], 1
mov ecx, dword [esp + 0x20]
mov esi, dword [0x5e5d34]
mov byte [esp + 0x40], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.00527960
push edi
call fcn.0041d750
mov ecx, eax
call fcn.00528670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x40], 1
cmp ecx, edi
je 0x5117f1
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 0x511803
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.004f3790
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret