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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007df56
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100a6204]
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 edi, 1
push 0x210
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x220]
push 0
push eax
mov dword [ebp - 0x260], 0
call fcn.10051fb0
add esp, 0xc
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov word [ebp - 0x238], ax
call fcn.10011780
mov dword [ebp - 4], 0
mov esi, dword [str.8FA908C0_EAC5_47F9_8074_FFC5EBBEB255]
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f00
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
push esi
call fcn.100074e0
test al, al
jne 0x1002556c
test esi, esi
jne 0x10025545
xor ecx, ecx
jmp 0x1002555f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025550
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x25c]
call fcn.1000f980
mov byte [ebp - 4], 2
mov esi, dword [str.yTX0Nc271ng3wq4imjZg]
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f0a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
push esi
call fcn.100074e0
test al, al
jne 0x100255d0
test esi, esi
jne 0x100255af
xor ecx, ecx
jmp 0x100255c3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100255b4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.1000f980
mov byte [ebp - 4], 4
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.1002ee20
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025630
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.10011780
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x264]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025691
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 - 0x25c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100256b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x238]
push eax
call fcn.10024270
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmovae eax, dword [ebp - 0x238]
push ecx
push 0x20219
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0
call esi
test eax, eax
jne 0x10025756
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 0x200
jmp 0x100257ae
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x258]
push ecx
push 0x20119
lea eax, [ebp - 0x238]
mov dword [ebp - 0x258], 0
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x10025eb3
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 0x100
lea eax, [ebp - 0x258]
mov dword [ebp - 0x27c], esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x258], 0x210
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push str.Path
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10025807
mov eax, dword [ebp - 0x264]
cmp eax, 1
je 0x100257f5
cmp eax, 2
jne 0x10025807
cmp dword [ebp - 0x258], 0
jne 0x10025807
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 0x1002584c
mov byte [ebp - 4], 0xb
test esi, esi
je 0x10025eb7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
jmp 0x10025eb7
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x268]
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 - 0x254], ecx
jne 0x100258c7
mov byte [ebp - 4], 0xb
test esi, esi
je 0x10025891
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100053f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100053f0
mov edi, dword [ebp - 0x254]
jmp 0x10025ee2
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f14
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 0xf
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x25c]
push 0x10083fb0
call fcn.100074e0
test al, al
jne 0x1002592f
push 1
push 0x10083fb0
lea ecx, [ebp - 0x25c]
call fcn.1000f980
mov byte [ebp - 4], 0x12
mov esi, dword [ebp - 0x25c]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x278], eax
test ecx, ecx
je 0x10025954
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1002596a
call fcn.10008280
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10025f28
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x260], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.10027740
mov eax, dword [ebp - 0x258]
lea edx, [edi - 0x10]
add esp, 0x14
mov dword [ebp - 0x264], edx
lea esi, [eax - 0x10]
cmp esi, edx
je 0x10025a18
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x10025a03
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x10025a03
push esi
call fcn.10007810
mov dword [ebp - 0x254], eax
add esp, 4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100259f2
mov edx, dword [ebp - 0x264]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x254]
add edi, 0x10
mov dword [ebp - 0x280], edi
jmp 0x10025a18
push dword [eax - 0xc]
lea ecx, [ebp - 0x280]
push eax
call fcn.1000f980
mov edi, dword [ebp - 0x280]
mov eax, 1
mov dword [ebp - 0x260], eax
and eax, 0xfffffffe
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0x11
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10025a44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x278]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025a62
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 - 0x254], ecx
jne 0x10025af5
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10025aa0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x10025abf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100053f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100053f0
mov edi, dword [ebp - 0x254]
jmp 0x10025ee2
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f32
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x258], esi
mov byte [ebp - 4], 0x18
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10025f3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x25c]
push 0x10083fb0
call fcn.100074e0
test al, al
jne 0x10025b5d
push 1
push 0x10083fb0
lea ecx, [ebp - 0x25c]
call fcn.1000f980
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
mov dword [ebp - 0x288], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10025b81
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10025b97
call fcn.10008280
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10025f46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x260], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x25c]
push dword [ecx - 0xc]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10027740
add esp, 0x14
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
mov dword [ebp - 0x284], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10025bfc
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10025c12
call fcn.10008280
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10025f50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x254]
push 4
push str.1
mov dword [ebp - 0x260], 6
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10027740
mov eax, dword [ebp - 0x268]
lea ecx, [esi - 0x10]
add esp, 0x14
mov dword [ebp - 0x278], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0x264], edx
cmp edx, ecx
je 0x10025ccd
cmp dword [ecx + 0xc], 0
jl 0x10025cb2
mov esi, dword [ebp - 0x278]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x10025cb2
push edx
call fcn.10007810
mov dword [ebp - 0x278], eax
lea ecx, [esi + 0xc]
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10025ca1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x278]
add esi, 0x10
mov dword [ebp - 0x258], esi
jmp 0x10025cc7
push dword [eax - 0xc]
lea ecx, [ebp - 0x258]
push eax
call fcn.1000f980
mov esi, dword [ebp - 0x258]
mov edx, dword [ebp - 0x264]
mov ecx, 6
mov dword [ebp - 0x260], ecx
and ecx, 0xfffffffb
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 0x1b
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025cff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x260]
and ecx, 0xfffffffd
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x284]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025d26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x288]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025d44
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 - 0x254], ecx
jne 0x10025d89
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10025d84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10025a87
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10025da4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10025dbd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x10025ddc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x10025e2a
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10025e20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025f5a
push edx
push ecx
call fcn.10048fc3
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x10025e8e
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10025e84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10025f5f
push edx
push ecx
call fcn.10048fc3
add esp, 8
mov edi, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x10025ee2
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100053f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100053f0
mov eax, edi
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
call fcn.100550e9
call fcn.100550e9
int3