Function at 0x410900
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447cd9
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x410ed0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov eax, dword [ebp + 8]
mov edx, str.ludashi
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x41098e
test di, di
je 0x41098a
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x41098e
add ecx, 4
add edx, 4
test di, di
jne 0x410968
xor ecx, ecx
jmp 0x410993
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4109a3
push 0xe
push str.ComputerZ_Tray
jmp 0x410a66
mov edx, str.ldslite
mov ecx, eax
nop word [eax + eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x4109d6
test di, di
je 0x4109d2
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x4109d6
add ecx, 4
add edx, 4
test di, di
jne 0x4109b0
xor ecx, ecx
jmp 0x4109db
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4109e8
push 0xd
push str.ComputerZLite
jmp 0x410a66
mov edx, str.bizhi
mov ecx, eax
nop
mov di, word [ecx]
cmp di, word [edx]
jne 0x410a16
test di, di
je 0x410a12
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x410a16
add ecx, 4
add edx, 4
test di, di
jne 0x4109f0
xor ecx, ecx
jmp 0x410a1b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x410a28
push 9
push str.360wp_srv
jmp 0x410a66
mov ecx, str.gamemaster
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a56
test dx, dx
je 0x410a52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a56
add eax, 4
add ecx, 4
test dx, dx
jne 0x410a30
xor eax, eax
jmp 0x410a5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410a77
push 0xd
push str.LDSGameMaster
lea ecx, [ebp - 0x224]
call fcn.00403300
mov esi, dword [ebp - 0x224]
or edi, 0xffffffff
cmp dword [esi - 0xc], 0
lea ebx, [edi + 2]
je 0x410bc8
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00425410
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], bl
push eax
push 0x20219
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410af6
mov dword [ebp - 0x244], 0x200
jmp 0x410b30
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410bc8
mov dword [ebp - 0x244], 0x100
mov ebx, dword [ebp - 0x228]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x248], ebx
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], ebx
push eax
push 0
push str.Path
push ebx
mov dword [ebp - 0x230], 0x210
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410b95
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x410b83
cmp eax, 2
jne 0x410b95
cmp dword [ebp - 0x230], 0
jne 0x410b95
xor eax, eax
mov word [ebp - 0x220], ax
push str.SoftMgr_somextrainfo.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410c04
test ebx, ebx
je 0x410bc3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x410be4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c009
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
push 0
push str.ItemType
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 4
setne cl
mov dword [ebp - 0x22c], ecx
jne 0x410c3c
test ebx, ebx
je 0x410c34
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x22c]
jmp 0x410bc8
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x410eda
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x410ee4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
push 0x449490
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00404120
test al, al
jne 0x410ca4
push 1
push 0x449490
lea ecx, [ebp - 0x234]
call fcn.00403300
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
mov dword [ebp - 0x250], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x410cc8
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x410cde
call fcn.00403870
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x410eee
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x24c], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x23c], esi
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], ecx
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x22c], edx
lea ebx, [edx + ecx]
test ebx, ebx
js 0x410ec6
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, ebx
or ecx, edx
jge 0x410d48
push ebx
lea ecx, [ebp - 0x23c]
call fcn.00403510
mov esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x22c]
lea ebx, [ecx + ecx]
push ebx
push eax
push ebx
push esi
call fcn.00408290
mov eax, dword [ebp - 0x238]
add eax, eax
push eax
push dword [ebp - 0x224]
push eax
lea eax, [ebx + esi]
push eax
call fcn.00408290
mov eax, dword [ebp - 0x22c]
add esp, 0x20
add eax, dword [ebp - 0x238]
cmp eax, dword [esi - 8]
jg 0x410ec6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ebx, [esi - 0x10]
lea ecx, [edi - 0x10]
mov dword [ebp - 0x22c], ecx
cmp ebx, ecx
je 0x410e02
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x410ded
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x410ded
push ebx
call fcn.004032a0
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x410de2
mov esi, dword [ebp - 0x22c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
jmp 0x410e02
push dword [esi - 0xc]
lea ecx, [ebp - 0x230]
push esi
call fcn.00403300
mov edi, dword [ebp - 0x230]
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x410e1b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
push 0
push str.ItemType
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
mov byte [ebp - 4], 1
cmp eax, 3
lea edx, [edi - 0x10]
setne bl
jne 0x410e93
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x410e88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x224]
jmp 0x410bc8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410eaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x410e88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x224]
jmp 0x410bc8
push 0x80070057
call fcn.00402420
push 0x80004005
call fcn.00402420
push 0x80004005
call fcn.00402420
push 0x80004005
call fcn.00402420
push 0x80004005
call fcn.00402420
int3