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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084886
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100ae254]
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.10058a20
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.10011df0
mov dword [ebp - 4], 0
mov esi, dword [str.8FA908C0_EAC5_47F9_8074_FFC5EBBEB255]
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026e75
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.10007a50
test al, al
jne 0x100264ec
test esi, esi
jne 0x100264c5
xor ecx, ecx
jmp 0x100264df
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100264d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x25c]
call fcn.10010000
mov byte [ebp - 4], 2
mov esi, dword [str.yTX0Nc271ng3wq4imjZg]
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026e7f
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.10007a50
test al, al
jne 0x10026550
test esi, esi
jne 0x1002652f
xor ecx, ecx
jmp 0x10026543
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026534
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.10010000
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.10031d40
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 0x100265b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.10011df0
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 0x100265f0
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 0x10026611
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 0x10026632
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.100253a0
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 0x100266d6
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 0x200
jmp 0x1002672e
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 0x10026e28
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 0x10026787
mov eax, dword [ebp - 0x264]
cmp eax, 1
je 0x10026775
cmp eax, 2
jne 0x10026787
cmp dword [ebp - 0x258], 0
jne 0x10026787
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 0x100267cc
mov byte [ebp - 4], 0xb
test esi, esi
je 0x10026e2c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
jmp 0x10026e2c
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 0x10026847
mov byte [ebp - 4], 0xb
test esi, esi
je 0x10026811
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.100058f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100058f0
mov edi, dword [ebp - 0x254]
jmp 0x10026e57
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026e89
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 0xf
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026e93
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 0x10089d3c
call fcn.10007a50
test al, al
jne 0x100268af
push 1
push 0x10089d3c
lea ecx, [ebp - 0x25c]
call fcn.10010000
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 0x100268d4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100268ea
call fcn.10008b70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10026e9d
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.100286b0
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 0x10026998
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x10026983
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x10026983
push esi
call fcn.10007d80
mov dword [ebp - 0x254], eax
add esp, 4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10026972
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 0x10026998
push dword [eax - 0xc]
lea ecx, [ebp - 0x280]
push eax
call fcn.10010000
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 0x100269c4
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 0x100269e2
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 0x10026a75
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10026a20
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 0x10026a3f
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.100058f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100058f0
mov edi, dword [ebp - 0x254]
jmp 0x10026e57
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026ea7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x258], esi
mov byte [ebp - 4], 0x18
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10026eb1
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 0x10089d3c
call fcn.10007a50
test al, al
jne 0x10026add
push 1
push 0x10089d3c
lea ecx, [ebp - 0x25c]
call fcn.10010000
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 0x10026b01
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10026b17
call fcn.10008b70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10026ebb
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.100286b0
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 0x10026b79
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10026b8f
call fcn.10008b70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10026ec5
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.100286b0
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 0x10026c47
cmp dword [ecx + 0xc], 0
jl 0x10026c2c
mov esi, dword [ebp - 0x278]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x10026c2c
push edx
call fcn.10007d80
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 0x10026c1b
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 0x10026c41
push dword [eax - 0xc]
lea ecx, [ebp - 0x258]
push eax
call fcn.10010000
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 0x10026c74
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 0x10026c9b
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 0x10026cb9
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 0x10026cfe
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10026cf9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10026a07
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10026d19
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 0x10026d32
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 0x10026d51
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 0x10026d9f
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10026d95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026ecf
push edx
push ecx
call fcn.10051738
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 0x10026e03
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10026df9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026ed4
push edx
push ecx
call fcn.10051738
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 0x10026e57
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.100058f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100058f0
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.10051ab7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
call fcn.1005bb49
call fcn.1005bb49
int3