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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084559
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x210
push 0
push eax
mov ebx, 1
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 0x10027409
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
push esi
call fcn.100079e0
test al, al
jne 0x10026fdc
test esi, esi
jne 0x10026fb4
xor ecx, ecx
jmp 0x10026fcf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026fc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.1000ffb0
mov byte [ebp - 4], 2
mov esi, dword [str.yTX0Nc271ng3wq4imjZg]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10027413
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
push esi
call fcn.100079e0
test al, al
jne 0x10027040
test esi, esi
jne 0x1002701f
xor ecx, ecx
jmp 0x10027033
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027024
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x258]
call fcn.1000ffb0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
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 0x100270a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.10011da0
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x268]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100270e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10027101
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10027120
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 - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x254]
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 - 0x254], 0
call esi
test eax, eax
jne 0x100271c4
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 0x200
jmp 0x1002721c
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x254]
push ecx
push 0x20119
lea eax, [ebp - 0x238]
mov dword [ebp - 0x254], 0
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x100273bc
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 0x100
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x210
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push str.Path
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002726f
mov eax, dword [ebp - 0x268]
cmp eax, 1
je 0x1002725d
cmp eax, 2
jne 0x1002726f
cmp dword [ebp - 0x254], 0
jne 0x1002726f
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 0x100272b4
mov byte [ebp - 4], 0xb
test esi, esi
je 0x100273c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x264], 0
jmp 0x100273c0
lea eax, [ebp - 0x220]
push eax
push 0
push str.ItemType
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
cmp eax, 2
setne bl
mov byte [ebp - 4], 0xb
test esi, esi
je 0x100272eb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x10027339
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002732f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002741d
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 0x1002739d
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10027393
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10027422
push edx
push ecx
call fcn.1004774c
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x100273eb
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x260], 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, 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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
call fcn.100534b3
call fcn.100534b3
int3