Function at 0x1009d4d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22bc
call fcn.100dc3f0
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push str.WinSCP.exe
lea ecx, [ebp - 0x2280]
mov dword [ebp - 0x2270], 0
mov dword [ebp - 0x226c], 0xf
mov byte [ebp - 0x2280], 0
call fcn.100af160
push 0x38
push str.Local_SettingsSoftwareMicrosoftWindowsShellMuiCache
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0xf
mov byte [ebp - 0x2250], 0
call fcn.100af160
cmp dword [ebp - 0x223c], 0x10
lea ecx, [ebp - 0x22a0]
push ecx
push 0x20019
lea eax, [ebp - 0x2250]
cmovae eax, dword [ebp - 0x2250]
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009d946
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100bd8d0
add esp, 0xc
mov dword [ebp - 0x2238], 0x104
lea eax, [ebp - 0x229c]
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2214], 0x1000
push eax
lea eax, [ebp - 0x2284]
push eax
lea eax, [ebp - 0x2288]
push eax
lea eax, [ebp - 0x228c]
push eax
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x2290]
push eax
lea eax, [ebp - 0x2294]
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 - 0x2218]
test eax, eax
je 0x1009d93a
xor ebx, ebx
mov dword [ebp - 0x22a4], ebx
test eax, eax
je 0x1009d93a
nop
xor eax, eax
mov dword [ebp - 0x2214], 0x1000
push eax
push eax
push eax
push eax
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x2214]
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 0x1009d927
mov dword [ebp - 0x2258], eax
mov word [ebp - 0x2268], ax
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2254], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1009d680
sub eax, edx
lea ecx, [ebp - 0x2268]
sar eax, 1
push eax
lea eax, [ebp - 0x2210]
push eax
call fcn.100aeed0
cmp dword [ebp - 0x2254], 8
lea ecx, [ebp - 0x2268]
mov eax, dword [ebp - 0x2258]
cmovae ecx, dword [ebp - 0x2268]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2268]
cmovae ecx, dword [ebp - 0x2268]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x2230]
call fcn.100afb10
sub esp, 0x18
lea eax, [ebp - 0x2230]
mov ecx, esp
push eax
call fcn.100ae9d0
sub esp, 0x18
lea eax, [ebp - 0x2280]
mov ecx, esp
push eax
call fcn.100ae9d0
call fcn.100852b0
add esp, 0x30
test eax, eax
jle 0x1009d892
cmp dword [ebp - 0x226c], 0x10
lea eax, [ebp - 0x2280]
push dword [ebp - 0x2270]
cmovae eax, dword [ebp - 0x2280]
lea ecx, [ebp - 0x2230]
cmp dword [ebp - 0x221c], 0x10
mov esi, dword [ebp - 0x2220]
mov edx, esi
cmovae ecx, dword [ebp - 0x2230]
push eax
push ecx
mov dword [ebp - 0x22ac], 0
mov dword [ebp - 0x22a8], 0xf
mov byte [ebp - 0x22bc], 0
call fcn.100b01e0
add esp, 0xc
lea ecx, [ebp - 0x2230]
cmp esi, eax
cmovb eax, esi
cmp dword [ebp - 0x221c], 0x10
push eax
cmovae ecx, dword [ebp - 0x2230]
push ecx
lea ecx, [ebp - 0x22bc]
call fcn.100af160
lea eax, [ebp - 0x22bc]
push eax
lea ecx, [ebp - 0x2230]
call fcn.100ae910
mov edx, dword [ebp - 0x22a8]
cmp edx, 0x10
jb 0x1009d7d9
mov ecx, dword [ebp - 0x22bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d7cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x100fdcc8
call fcn.100ae9d0
sub esp, 0x18
lea eax, [ebp - 0x2230]
mov ecx, esp
push eax
call fcn.100ae9d0
call fcn.100852b0
add esp, 0x30
test eax, eax
jg 0x1009d88c
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100ae9d0
sub esp, 0x18
lea eax, [ebp - 0x2230]
mov ecx, esp
push eax
call fcn.100ae9d0
call fcn.1009bee0
lea eax, [ebp - 0x2230]
mov edx, 0x100fdcc8
push eax
lea ecx, [ebp - 0x22bc]
call fcn.100af700
add esp, 0x34
mov ecx, 0x100fdcc8
push eax
call fcn.100ae910
mov edx, dword [ebp - 0x22a8]
cmp edx, 0x10
jb 0x1009d88c
mov ecx, dword [ebp - 0x22bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ebx, dword [ebp - 0x22a4]
mov edx, dword [ebp - 0x221c]
cmp edx, 0x10
jb 0x1009d8cc
mov ecx, dword [ebp - 0x2230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d8c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
mov edx, dword [ebp - 0x2254]
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0xf
mov byte [ebp - 0x2230], 0
cmp edx, 8
jb 0x1009d927
mov ecx, dword [ebp - 0x2268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d91d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
inc ebx
mov dword [ebp - 0x22a4], ebx
cmp ebx, dword [ebp - 0x2218]
jb 0x1009d620
push dword [ebp - 0x22a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x223c]
cmp edx, 0x10
jb 0x1009d980
mov ecx, dword [ebp - 0x2250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
mov edx, dword [ebp - 0x226c]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0xf
mov byte [ebp - 0x2250], 0
cmp edx, 0x10
jb 0x1009d9d1
mov ecx, dword [ebp - 0x2280]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d9c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1009da01
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d9f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009da12
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100c79a0
int3