Function at 0x51b1c0
Capabilities:
Access peb ldr_data
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x58400f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebp
push esi
mov dword [esp + 0x30], ecx
mov esi, 1
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0x208
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24c], edi
call sub.MFC42.DLL_CString::CString_3
push str.SOFTWAREStorm
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 1
call sub.MFC42.DLL_CString::operator_2
push str._skinsclassic2
lea ecx, [esp + 0x14]
call fcn.00564d16
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x24c], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], 0x5ed8c0
call dword [eax + 4]
mov eax, dword [0x5e5d30]
mov byte [esp + 0x24c], 4
cmp eax, edi
jne 0x51b2cb
cmp dword [0x5e5d2c], edi
jne 0x51b2cb
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x24c], 5
je 0x51b2a0
mov ecx, eax
call fcn.00464f50
jmp 0x51b2a2
xor eax, eax
mov ecx, dword [0x5cf938]
mov byte [esp + 0x24c], 4
push ecx
push 0x41dab0
mov ecx, 0x5eafa0
mov dword [0x5e5d2c], eax
call fcn.00406600
mov dword [0x5e5d30], esi
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x24c], 3
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x51b340
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x51b340
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov edx, dword [eax]
push ecx
push 0x5d0be0
push eax
call dword [edx]
cmp esi, edi
je 0x51b31f
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push str.pref
push eax
push SysReAllocStringLen
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x51b46d
test eax, eax
je 0x51b52e
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
push str.PLmode
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x51b400
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xbc]
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
jne 0x51b3c4
push str.PLmode_
jmp 0x51b3c9
push str._PLmode_
lea ecx, [esp + 0x10]
call fcn.00564d16
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x51b3e1
push 0x5cf478
jmp 0x51b3f7
cmp eax, 1
jne 0x51b3ed
push 0x5cf990
jmp 0x51b3f7
cmp eax, 2
jne 0x51b400
push 0x5d0970
lea ecx, [esp + 0x10]
call fcn.00564d16
push str.PLcycle
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x51b44c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51b44c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x51b43e
push str.PLcycle_true
jmp 0x51b443
push str._PLcycle_true
lea ecx, [esp + 0x10]
call fcn.00564d16
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push str.pref
push ecx
push SysReAllocStringLen
call edi
jmp 0x51b52e
test eax, eax
je 0x51b52e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x5e5830
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 6
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xbc]
push str.PLmode_
lea ecx, [esp + 0x10]
call fcn.00564d16
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x5ce744
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00564ce6
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xb4]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51b501
push str._PLcycle_true
lea ecx, [esp + 0x10]
call fcn.00564d16
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push str.pref
push edx
push SysReAllocStringLen
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 3
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x254]
test al, al
je 0x51b880
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x51b7a2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xf8]
test ecx, ecx
je 0x51b61b
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push str.pref
push ecx
push SysReAllocStringLen
mov dword [esp + 0x34], 0x208
call ebp
test eax, eax
jne 0x51b880
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x3c]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x250], 7
call sub.MFC42.DLL_CString::operator_2
push str.PLopen_true
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b5e9
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b5e9
mov eax, dword [esp + 0x30]
test eax, eax
je 0x51b5e9
push str.PLname_online
push str.PLname_local
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push str.pref
push eax
push SysReAllocStringLen
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x51b880
mov dword [esp + 0x18], 0
mov edx, dword [0x5ed860]
mov ecx, 0x5ed860
mov byte [esp + 0x24c], 8
mov dword [esp + 0x20], ecx
call dword [edx + 4]
mov eax, dword [0x5ea850]
mov byte [esp + 0x24c], 9
test eax, eax
jne 0x51b6b1
mov eax, dword [0x5ea84c]
test eax, eax
jne 0x51b6b1
push 0x58
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x24c], 0xa
je 0x51b682
mov ecx, esi
call fcn.0054be10
mov dword [esi], vtable.CComObjectNoRef_class_CStormLogMgr_.0
jmp 0x51b684
xor esi, esi
mov eax, dword [0x5d6e20]
mov ecx, 0x5eafa0
push eax
push 0x466290
mov byte [esp + 0x254], 9
mov dword [0x5ea84c], esi
call fcn.00406600
mov dword [0x5ea850], 1
mov edx, dword [0x5ed860]
mov esi, dword [0x5ea84c]
mov ecx, 0x5ed860
mov byte [esp + 0x24c], 8
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [eax + 0x7c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51b6e8
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0xc]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push str.pref
push eax
push SysReAllocStringLen
mov dword [esp + 0x34], 0x208
call ebp
test eax, eax
jne 0x51b783
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xfc]
test eax, eax
jne 0x51b767
push str.PLopen_true
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b767
push str.PLname_online
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b767
push str.PLname_local
push str.PLname_online
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push str.pref
push eax
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x24c], 3
test eax, eax
je 0x51b880
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51b880
cmp eax, 1
je 0x51b7b0
cmp eax, 2
jne 0x51b880
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push str.pref
push edx
push SysReAllocStringLen
mov dword [esp + 0x34], 0x208
call ebp
test eax, eax
jne 0x51b880
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_2
push str.PLopen_false
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b813
push str.PLopen_true
push str.PLopen_false
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x28]
cmp eax, 1
jne 0x51b83a
push str.PLname_online
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b864
push str.PLname_local
push str.PLname_online
jmp 0x51b85b
cmp eax, 2
jne 0x51b864
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b864
push str.PLname_online
push str.PLname_local
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push str.pref
push ecx
push SysReAllocStringLen
call edi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push str.pref
push edx
push SysReAllocStringLen
mov dword [esp + 0x34], 0x208
call ebp
test eax, eax
jne 0x51b97c
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_2
push str.PLname_online
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x51b960
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x51b960
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jne 0x51b8fe
mov ecx, dword [eax + 0xfc]
test ecx, ecx
je 0x51b90d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x51b90d
push str._PLname_online
jmp 0x51b912
push str._PLname_local
lea ecx, [esp + 0x10]
call fcn.00564d16
push str.PLopen_false
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x51b940
push str.PLopen_true
push str.PLopen_false
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push str.PLopen_true
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x51b960
push str._PLopen_true
lea ecx, [esp + 0x10]
call fcn.00564d16
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push str.pref
push ecx
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov byte [esp + 0x244], 2
test eax, eax
pop ebp
je 0x51b995
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x240], 1
test eax, eax
je 0x51b9ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp]
mov byte [esp + 0x240], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
add esp, 0x244
ret 4