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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084276
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100ac1c4]
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.100503b0
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.10011da0
mov dword [ebp - 4], 0
mov esi, dword [str.8FA908C0_EAC5_47F9_8074_FFC5EBBEB255]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10026285
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.100079e0
test al, al
jne 0x100258fc
test esi, esi
jne 0x100258d5
xor ecx, ecx
jmp 0x100258ef
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100258e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x25c]
call fcn.1000ffb0
mov byte [ebp - 4], 2
mov esi, dword [str.yTX0Nc271ng3wq4imjZg]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x1002628f
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.100079e0
test al, al
jne 0x10025960
test esi, esi
jne 0x1002593f
xor ecx, ecx
jmp 0x10025953
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025944
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.1000ffb0
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.1002f1d0
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 0x100259c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.10011da0
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 0x10025a00
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 0x10025a21
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 0x10025a42
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.10024600
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 0x10025ae6
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 0x200
jmp 0x10025b3e
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 0x10026238
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 0x10025b97
mov eax, dword [ebp - 0x264]
cmp eax, 1
je 0x10025b85
cmp eax, 2
jne 0x10025b97
cmp dword [ebp - 0x258], 0
jne 0x10025b97
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 0x10025bdc
mov byte [ebp - 4], 0xb
test esi, esi
je 0x1002623c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
jmp 0x1002623c
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 0x10025c57
mov byte [ebp - 4], 0xb
test esi, esi
je 0x10025c21
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.10005880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10005880
mov edi, dword [ebp - 0x254]
jmp 0x10026267
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10026299
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 0xf
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100262a3
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 0x10089d50
call fcn.100079e0
test al, al
jne 0x10025cbf
push 1
push 0x10089d50
lea ecx, [ebp - 0x25c]
call fcn.1000ffb0
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 0x10025ce4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10025cfa
call fcn.100085e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100262ad
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.10027ac0
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 0x10025da8
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x10025d93
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x10025d93
push esi
call fcn.10007d10
mov dword [ebp - 0x254], eax
add esp, 4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10025d82
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 0x10025da8
push dword [eax - 0xc]
lea ecx, [ebp - 0x280]
push eax
call fcn.1000ffb0
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 0x10025dd4
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 0x10025df2
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 0x10025e85
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10025e30
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 0x10025e4f
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.10005880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10005880
mov edi, dword [ebp - 0x254]
jmp 0x10026267
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100262b7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x258], esi
mov byte [ebp - 4], 0x18
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100262c1
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 0x10089d50
call fcn.100079e0
test al, al
jne 0x10025eed
push 1
push 0x10089d50
lea ecx, [ebp - 0x25c]
call fcn.1000ffb0
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 0x10025f11
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10025f27
call fcn.100085e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100262cb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0x1b
or dword [ebp - 0x260], 2
mov eax, dword [ebp - 0x268]
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.10027ac0
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 0x10025f89
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10025f9f
call fcn.100085e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100262d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0x1d
or dword [ebp - 0x260], 4
mov eax, dword [ebp - 0x254]
push 4
push str.1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10027ac0
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 0x10026057
cmp dword [ecx + 0xc], 0
jl 0x1002603c
mov esi, dword [ebp - 0x278]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1002603c
push edx
call fcn.10007d10
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 0x1002602b
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 0x10026051
push dword [eax - 0xc]
lea ecx, [ebp - 0x258]
push eax
call fcn.1000ffb0
mov esi, dword [ebp - 0x258]
mov edx, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x260]
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 0x10026084
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 0x100260ab
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 0x100260c9
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 0x1002610e
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10026109
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10025e17
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10026129
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 0x10026142
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 0x10026161
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 0x100261af
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100261a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100262df
push edx
push ecx
call fcn.1004774c
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 0x10026213
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10026209
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100262e4
push edx
push ecx
call fcn.1004774c
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 0x10026267
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.10005880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10005880
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
call fcn.100534b3
call fcn.100534b3
int3