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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100589b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10079214]
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 eax, dword [ebp + 8]
mov esi, 1
push 0x210
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x220]
push 0
push eax
mov dword [ebp - 0x22c], 0
call fcn.10031950
add esp, 0xc
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20219
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x228], 0
call edi
test eax, eax
jne 0x1001d0fd
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], 0x200
jmp 0x1001d145
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x1001d742
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], 0x100
lea eax, [ebp - 0x228]
mov dword [ebp - 0x24c], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0x210
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push str.Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d19e
mov eax, dword [ebp - 0x234]
cmp eax, 1
je 0x1001d18c
cmp eax, 2
jne 0x1001d19e
cmp dword [ebp - 0x228], 0
jne 0x1001d19e
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 0x1001d1e6
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1001d749
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001d749
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x230]
push 0
push str.ItemType
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 4
setne cl
mov dword [ebp - 0x224], ecx
jne 0x1001d239
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1001d22e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
mov esi, dword [ebp - 0x224]
jmp 0x1001d749
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001d771
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 2
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001d77b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
push 0x1005b82c
call fcn.10004850
test al, al
jne 0x1001d2a1
push 1
push 0x1005b82c
lea ecx, [ebp - 0x224]
call fcn.1000a650
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x248], eax
test ecx, ecx
je 0x1001d2c6
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1001d2dc
call fcn.10005540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1001d785
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x22c], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.1001e810
mov eax, dword [ebp - 0x228]
lea edx, [edi - 0x10]
add esp, 0x14
mov dword [ebp - 0x234], edx
or ebx, 0xffffffff
lea esi, [eax - 0x10]
cmp esi, edx
je 0x1001d38d
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x1001d378
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x1001d378
push esi
call fcn.10004b60
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x1001d36d
mov edi, dword [ebp - 0x234]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
jmp 0x1001d38d
push dword [eax - 0xc]
lea ecx, [ebp - 0x250]
push eax
call fcn.1000a650
mov edi, dword [ebp - 0x250]
mov eax, 1
mov dword [ebp - 0x22c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 4
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001d3b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x248]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d3d7
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 ecx, ecx
cmp eax, 3
setne cl
mov dword [ebp - 0x224], ecx
jne 0x1001d430
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001d415
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x1001d22e
push eax
jmp 0x1001d21e
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001d78f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 0xb
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001d799
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x224]
push 0x1005b82c
call fcn.10004850
test al, al
jne 0x1001d498
push 1
push 0x1005b82c
lea ecx, [ebp - 0x224]
call fcn.1000a650
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ebp - 0x258], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d4bc
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1001d4d2
call fcn.10005540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1001d7a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x22c], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x224]
push dword [ecx - 0xc]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.1001e810
add esp, 0x14
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov dword [ebp - 0x254], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d537
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1001d54d
call fcn.10005540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1001d7ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x244]
push 4
push str.1
mov dword [ebp - 0x22c], 6
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1001e810
mov eax, dword [ebp - 0x230]
lea ecx, [esi - 0x10]
add esp, 0x14
mov dword [ebp - 0x248], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0x234], edx
cmp edx, ecx
je 0x1001d608
cmp dword [ecx + 0xc], 0
jl 0x1001d5ed
mov esi, dword [ebp - 0x248]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1001d5ed
push edx
call fcn.10004b60
add esp, 4
mov dword [ebp - 0x248], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d5e2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
jmp 0x1001d602
push dword [eax - 0xc]
lea ecx, [ebp - 0x228]
push eax
call fcn.1000a650
mov esi, dword [ebp - 0x228]
mov edx, dword [ebp - 0x234]
mov ecx, 6
mov dword [ebp - 0x22c], ecx
and ecx, 0xfffffffb
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 0xe
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d63a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x22c]
and ecx, 0xfffffffd
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x254]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d661
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x258]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d67f
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 esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 3
setne cl
mov dword [ebp - 0x224], ecx
jne 0x1001d6f3
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001d6bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001d6d8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x1001d22e
push eax
jmp 0x1001d21e
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001d70e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001d727
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x1001d22e
push eax
jmp 0x1001d21e
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x23c], 0
mov eax, esi
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.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
int3