Function at 0x1009f950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22bc
call fcn.100de7d0
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push str.WinSCP.exe
lea ecx, [ebp - 0x2284]
mov dword [ebp - 0x2284], 0
mov dword [ebp - 0x2274], 0
mov dword [ebp - 0x2270], 0xf
call fcn.100b1950
push 0x4b
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFeatureUsageAppSwitched
lea ecx, [ebp - 0x2254]
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0xf
call fcn.100b1950
cmp dword [ebp - 0x2240], 0x10
lea ecx, [ebp - 0x22a0]
push ecx
push 0x20019
lea eax, [ebp - 0x2254]
cmovae eax, dword [ebp - 0x2254]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009fe20
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100bfa00
add esp, 0xc
mov dword [ebp - 0x2238], 0x104
lea eax, [ebp - 0x229c]
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x222c], 0x1000
push eax
lea eax, [ebp - 0x2288]
push eax
lea eax, [ebp - 0x228c]
push eax
lea eax, [ebp - 0x2290]
push eax
lea eax, [ebp - 0x2230]
push eax
lea eax, [ebp - 0x2294]
push eax
lea eax, [ebp - 0x223c]
push eax
lea eax, [ebp - 0x2234]
push eax
push 0
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x22a0]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x1009fe14
xor ebx, ebx
mov dword [ebp - 0x22a4], ebx
test eax, eax
je 0x1009fe14
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x222c], 0x1000
push eax
push eax
push eax
push eax
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2210]
push eax
push ebx
push dword [ebp - 0x22a0]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1009fe01
mov dword [ebp - 0x226c], eax
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2258], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1009fb10
sub eax, edx
lea ecx, [ebp - 0x226c]
sar eax, 1
push eax
lea eax, [ebp - 0x2210]
push eax
call fcn.100b16b0
cmp dword [ebp - 0x2258], 8
lea ecx, [ebp - 0x226c]
mov eax, dword [ebp - 0x225c]
cmovae ecx, dword [ebp - 0x226c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x226c]
cmovae ecx, dword [ebp - 0x226c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x2228]
call fcn.100b20a0
sub esp, 0x18
lea eax, [ebp - 0x2228]
mov ecx, esp
push eax
call fcn.100b1340
sub esp, 0x18
lea eax, [ebp - 0x2284]
mov ecx, esp
push eax
call fcn.100b1340
call fcn.10086320
add esp, 0x30
test eax, eax
jle 0x1009fd6c
cmp dword [ebp - 0x2270], 0x10
lea eax, [ebp - 0x2284]
push dword [ebp - 0x2274]
cmovae eax, dword [ebp - 0x2284]
lea ecx, [ebp - 0x2228]
cmp dword [ebp - 0x2214], 0x10
mov esi, dword [ebp - 0x2218]
mov edx, esi
cmovae ecx, dword [ebp - 0x2228]
push eax
push ecx
mov dword [ebp - 0x22bc], 0
mov dword [ebp - 0x22ac], 0
mov dword [ebp - 0x22a8], 0xf
call fcn.100b2660
add esp, 0xc
lea ecx, [ebp - 0x2228]
cmp esi, eax
cmovb eax, esi
cmp dword [ebp - 0x2214], 0x10
push eax
cmovae ecx, dword [ebp - 0x2228]
push ecx
lea ecx, [ebp - 0x22bc]
call fcn.100b1950
lea eax, [ebp - 0x22bc]
push eax
lea ecx, [ebp - 0x2228]
call fcn.100b1280
mov edx, dword [ebp - 0x22a8]
cmp edx, 0x10
jb 0x1009fc6c
mov ecx, dword [ebp - 0x22bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fc62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x10100e10
call fcn.100b1340
sub esp, 0x18
lea eax, [ebp - 0x2228]
mov ecx, esp
push eax
call fcn.100b1340
call fcn.10086320
add esp, 0x30
test eax, eax
jg 0x1009fd66
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100b1340
sub esp, 0x18
lea eax, [ebp - 0x2228]
mov ecx, esp
push eax
call fcn.100b1340
call fcn.1009ded0
mov edx, dword [0x10100e20]
mov eax, 0x7fffffff
mov esi, dword [ebp - 0x2218]
sub eax, edx
add esp, 0x30
cmp eax, esi
jb 0x1009fef1
cmp dword [0x10100e24], 0x10
lea eax, [ebp - 0x2228]
mov ecx, 0x10100e10
cmovae ecx, dword [0x10100e10]
cmp dword [ebp - 0x2214], 0x10
push esi
cmovae eax, dword [ebp - 0x2228]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x223c]
lea ecx, [ebp - 0x22bc]
call fcn.100b40e0
lea eax, [ebp - 0x22bc]
mov ecx, 0x10100e10
push eax
call fcn.100b1280
mov edx, dword [ebp - 0x22a8]
cmp edx, 0x10
jb 0x1009fd66
mov ecx, dword [ebp - 0x22bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fd5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ebx, dword [ebp - 0x22a4]
mov edx, dword [ebp - 0x2214]
cmp edx, 0x10
jb 0x1009fda6
mov ecx, dword [ebp - 0x2228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fd9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp - 0x2258]
mov dword [ebp - 0x2218], 0
mov dword [ebp - 0x2214], 0xf
mov byte [ebp - 0x2228], 0
cmp edx, 8
jb 0x1009fe01
mov ecx, dword [ebp - 0x226c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fdf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
inc ebx
mov dword [ebp - 0x22a4], ebx
cmp ebx, dword [ebp - 0x2230]
jb 0x1009fab0
push dword [ebp - 0x22a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2240]
cmp edx, 0x10
jb 0x1009fe5a
mov ecx, dword [ebp - 0x2254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fe50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp - 0x2270]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0xf
mov byte [ebp - 0x2254], 0
cmp edx, 0x10
jb 0x1009feab
mov ecx, dword [ebp - 0x2284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fea1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1009fedb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fed1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009feec
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
call fcn.100c93fd
call fcn.10083390
int3