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

Disassembly:
push 0xffffffffffffffff
push 0x56d7ff
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.0054f910
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x5d2a60]
mov ecx, 0x5d2a60
mov byte [esp + 0x24c], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], 0x5d2a60
call dword [eax + 4]
mov eax, dword [0x5cb0cc]
mov byte [esp + 0x24c], 4
cmp eax, edi
jne 0x51047b
cmp dword [0x5cb0c8], edi
jne 0x51047b
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x24c], 5
je 0x510450
mov ecx, eax
call fcn.0045e9d0
jmp 0x510452
xor eax, eax
mov ecx, dword [0x5b5c48]
mov byte [esp + 0x24c], 4
push ecx
push 0x41ebd0
mov ecx, 0x5d0190
mov dword [0x5cb0c8], eax
call fcn.00406500
mov dword [0x5cb0cc], esi
mov edx, dword [0x5d2a60]
mov esi, dword [0x5cb0c8]
mov ecx, 0x5d2a60
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 0x5104f0
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x5104f0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov edx, dword [eax]
push ecx
push 0x5b68d0
push eax
call dword [edx]
cmp esi, edi
je 0x5104cf
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 + 0xc4]
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 0x51061d
test eax, eax
je 0x5106de
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 0x5105b0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xb4]
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
jne 0x510574
push str.PLmode_
jmp 0x510579
push str._PLmode_
lea ecx, [esp + 0x10]
call fcn.0054f910
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x510591
push 0x5b53fc
jmp 0x5105a7
cmp eax, 1
jne 0x51059d
push 0x5b5ca0
jmp 0x5105a7
cmp eax, 2
jne 0x5105b0
push 0x5b6658
lea ecx, [esp + 0x10]
call fcn.0054f910
push str.PLcycle
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x5105fc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5105fc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5105ee
push str.PLcycle_true
jmp 0x5105f3
push str._PLcycle_true
lea ecx, [esp + 0x10]
call fcn.0054f910
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 0x5106de
test eax, eax
je 0x5106de
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x5cabc0
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 + 0xb4]
push str.PLmode_
lea ecx, [esp + 0x10]
call fcn.0054f910
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x5b4724
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054f92e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xac]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5106b1
push str._PLcycle_true
lea ecx, [esp + 0x10]
call fcn.0054f910
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 0x510a30
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x510952
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xf8]
test ecx, ecx
je 0x5107cb
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 0x510a30
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 0x510799
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510799
mov eax, dword [esp + 0x30]
test eax, eax
je 0x510799
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 0x510a30
mov dword [esp + 0x18], 0
mov edx, dword [0x5d2a00]
mov ecx, 0x5d2a00
mov byte [esp + 0x24c], 8
mov dword [esp + 0x20], ecx
call dword [edx + 4]
mov eax, dword [0x5cfa58]
mov byte [esp + 0x24c], 9
test eax, eax
jne 0x510861
mov eax, dword [0x5cfa54]
test eax, eax
jne 0x510861
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 0x510832
mov ecx, esi
call fcn.005394f0
mov dword [esi], vtable.CComObjectNoRef_class_CStormLogMgr_.0
jmp 0x510834
xor esi, esi
mov eax, dword [0x5bc808]
mov ecx, 0x5d0190
push eax
push 0x45fbc0
mov byte [esp + 0x254], 9
mov dword [0x5cfa54], esi
call fcn.00406500
mov dword [0x5cfa58], 1
mov edx, dword [0x5d2a00]
mov esi, dword [0x5cfa54]
mov ecx, 0x5d2a00
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 0x510898
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 0x510933
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 0x510917
push str.PLopen_true
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510917
push str.PLname_online
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510917
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 0x510a30
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x510a30
cmp eax, 1
je 0x510960
cmp eax, 2
jne 0x510a30
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 0x510a30
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 0x5109c3
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 0x5109ea
push str.PLname_online
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510a14
push str.PLname_local
push str.PLname_online
jmp 0x510a0b
cmp eax, 2
jne 0x510a14
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510a14
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 0x510b2c
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 0x510b10
push str.PLname_local
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x510b10
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jne 0x510aae
mov ecx, dword [eax + 0xfc]
test ecx, ecx
je 0x510abd
mov eax, dword [esp + 0x30]
test eax, eax
je 0x510abd
push str._PLname_online
jmp 0x510ac2
push str._PLname_local
lea ecx, [esp + 0x10]
call fcn.0054f910
push str.PLopen_false
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x510af0
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 0x510b10
push str._PLopen_true
lea ecx, [esp + 0x10]
call fcn.0054f910
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 0x510b45
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x240], 1
test eax, eax
je 0x510b5b
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