Function at 0x10268c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x13e4
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x10068f0]
mov dword [ebp - 0xed0], eax
mov ecx, dword [0x10068f4]
mov dword [ebp - 0xecc], ecx
mov edx, dword [0x10068f8]
mov dword [ebp - 0xec8], edx
mov eax, dword [0x10068fc]
mov dword [ebp - 0xec4], eax
mov ecx, dword [0x1006900]
mov dword [ebp - 0xec0], ecx
mov edx, dword [0x1006904]
mov dword [ebp - 0xebc], edx
mov ax, word [0x10015d4]
mov word [ebp - 0xea8], ax
push 0x1fe
push 0
lea ecx, [ebp - 0xea6]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x698], dx
push 0x7e
push 0
lea eax, [ebp - 0x696]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x618], cx
push 0x3fe
push 0
lea edx, [ebp - 0x616]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0xca8], ax
push 0x3fe
push 0
lea ecx, [ebp - 0xca6]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0xfd0], dx
push 0xfe
push 0
lea eax, [ebp - 0xfce]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x13d8], cx
push 0x3fe
push 0
lea edx, [ebp - 0x13d6]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x8a0], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x89e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x210], dx
push 0x1fe
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0xeb8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0xeac], 0
mov dword [ebp - 0x8a8], 0
mov dword [ebp - 0xeb4], 0
mov dword [ebp - 0xeb0], 0
mov dword [ebp - 0xfd4], 0
mov dword [ebp - 0x8a4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x13e0], ecx
cmp dword [ebp - 0x13e0], 1
je 0x1026ac5
cmp dword [ebp - 0x13e0], 2
je 0x1026fcc
jmp 0x1027067
mov dword [0x104ef38], 0
mov dword [0x104f4e8], 0
cmp dword [0x104e340], 0
je 0x1026bc9
push 0
push 0x10068c8
push 0
call fcn.0100de70
add esp, 0xc
mov dword [0x104f4ec], eax
cmp dword [0x104f4ec], 0
je 0x1026baa
push 0x10068b4
mov edx, dword [0x104f4ec]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f4f0], eax
push 0x10068a8
mov eax, dword [0x104f4ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f4f4], eax
cmp dword [0x104f4f0], 0
je 0x1026baa
cmp dword [0x104f4f4], 0
je 0x1026baa
push 0x200
lea ecx, [ebp - 0x13d8]
push ecx
push 0x104e348
push 0x1001964
push 0
push 0
push 0x104ca54
call dword [0x104f4f0]
mov dword [ebp - 0xeb4], eax
cmp dword [ebp - 0xeb4], 0
jge 0x1026b96
lea edx, [ebp - 0x13d8]
push edx
push 0x104
push 0
push 1
call fcn.01028fb0
add esp, 0x10
jmp 0x1026baa
mov dword [0x104f4f8], 1
mov dword [ebp - 0x8a8], 1
cmp dword [0x104f4f8], 0
jne 0x1026bc4
push 0x163
push 0
push 1
call fcn.01028fb0
add esp, 0xc
jmp 0x1026fc7
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x104ea08
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01042900
add esp, 0x14
mov dword [ebp - 0xeb8], eax
cmp dword [ebp - 0xeb8], 0
jne 0x1026c7a
mov dword [ebp - 0x69c], 0x200
lea ecx, [ebp - 0x69c]
push ecx
lea edx, [ebp - 0xea8]
push edx
push 0
push 0
push 0x100688c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xeb8], eax
cmp dword [ebp - 0xeb8], 0
jne 0x1026c3f
lea ecx, [ebp - 0xea8]
push ecx
call fcn.01042790
add esp, 4
mov dword [ebp - 0x69c], 4
lea edx, [ebp - 0x69c]
push edx
lea eax, [ebp - 0xeac]
push eax
push 0
push 0
push 0x1006870
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xeb8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xea8]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
test eax, eax
je 0x1026f92
push 0x100
lea ecx, [ebp - 0x210]
push ecx
push 0x100
lea edx, [ebp - 0x8a0]
push edx
call dword [sym.imp.SEMMAP90.dll_SFMapi1GetMapiVerInfo]
add esp, 0x10
test eax, eax
je 0x1026d60
mov dword [ebp - 0x8a4], 0
mov eax, dword [ebp - 0x8a4]
mov dword [ebp - 0xfd4], eax
lea ecx, [ebp - 0x8a0]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0xeb0], eax
jmp 0x1026cf8
mov edx, dword [ebp - 0xfd4]
add edx, 1
mov dword [ebp - 0xfd4], edx
mov eax, dword [ebp - 0xfd4]
cmp eax, dword [ebp - 0xeb0]
jge 0x1026d27
mov ecx, dword [ebp - 0xfd4]
movzx edx, word [ebp + ecx*2 - 0x8a0]
cmp edx, 0x5c
jne 0x1026d25
mov eax, dword [ebp - 0xfd4]
mov dword [ebp - 0x8a4], eax
jmp 0x1026ce9
mov ecx, dword [ebp - 0x8a4]
mov word [ebp + ecx*2 - 0x8a0], 0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x8a0]
push eax
call dword [sym.imp.MSVCR80.dll__wcsupr]
add esp, 4
push eax
push 0x188
push 0
push 4
call fcn.01028fb0
add esp, 0x14
lea ecx, [ebp - 0xea8]
push ecx
push 0xc4
push 0
push 4
call fcn.01028fb0
add esp, 0x10
call dword [sym.imp.SEMMAP90.dll_SFMapi1CanUseMAPI]
test eax, eax
je 0x1026f7f
push 2
mov edx, dword [ebp - 0xeac]
push edx
mov eax, dword [0x104e7d4]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
push eax
call dword [sym.imp.SEMMAP90.dll_SFMapi1Initialize]
add esp, 0xc
mov dword [0x104ef38], eax
cmp dword [0x104ef38], 0
je 0x1026f7f
push 0x400
push 0
lea ecx, [ebp - 0x13d8]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x200
lea edx, [ebp - 0x13d8]
push edx
push 1
push 0
lea eax, [ebp - 0xea8]
push eax
mov ecx, dword [0x104ef38]
push ecx
call dword [sym.imp.SEMMAP90.dll_SFMapi1Logon]
add esp, 0x18
mov dword [ebp - 0xeb4], eax
cmp dword [ebp - 0xeb4], 0
jge 0x1026f2a
movzx edx, word [ebp - 0x13d8]
test edx, edx
jne 0x1026e3c
push 0x200
lea eax, [ebp - 0x13d8]
push eax
mov ecx, dword [ebp - 0xeb4]
push ecx
mov edx, dword [0x104ef38]
push edx
call dword [sym.imp.SEMMAP90.dll_SFMapi1GetLastError]
add esp, 0x10
test eax, eax
je 0x1026e73
lea eax, [ebp - 0x13d8]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x13da]
cmp ecx, 0x2e
jne 0x1026e73
lea edx, [ebp - 0x13d8]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov word [ebp + eax*2 - 0x13da], 0
push 0x200
lea eax, [ebp - 0x618]
push eax
push 0x14d
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
movzx edx, word [ebp - 0x13d8]
test edx, edx
je 0x1026eaa
lea eax, [ebp - 0x13d8]
mov dword [ebp - 0x13e4], eax
jmp 0x1026ecf
push 0xa
lea ecx, [ebp - 0x698]
push ecx
mov edx, dword [ebp - 0xeb4]
and edx, 0xffff
push edx
call dword [sym.imp.MSVCR80.dll__ltow]
add esp, 0xc
mov dword [ebp - 0x13e4], eax
push 0x104ec10
mov eax, dword [ebp - 0x13e4]
push eax
lea ecx, [ebp - 0x618]
push ecx
push 0x200
lea edx, [ebp - 0xca8]
push edx
call fcn.01011d00
add esp, 0x14
lea eax, [ebp - 0xca8]
push eax
push 0x104
push 0
push 1
call fcn.01028fb0
add esp, 0x10
mov ecx, dword [0x104ef38]
push ecx
call dword [sym.imp.SEMMAP90.dll_SFMapi1DeInitialize]
add esp, 4
mov dword [0x104ef38], 0
jmp 0x1026f7d
mov dword [ebp - 0x13dc], 0
lea edx, [ebp - 0x13dc]
push edx
mov eax, dword [0x104ef38]
push eax
call dword [sym.imp.SEMMAP90.dll_SFMapi1Version]
add esp, 8
mov dword [ebp - 0xeb4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x104f4e8], eax
mov ecx, dword [ebp - 0x13dc]
push ecx
push 0x161
push 0
push 4
call fcn.01028fb0
add esp, 0x10
mov dword [ebp - 0x8a8], 1
jmp 0x1026f90
push 0x163
push 0
push 1
call fcn.01028fb0
add esp, 0xc
jmp 0x1026fc7
push 0x200
lea edx, [ebp - 0x618]
push edx
push 0x105
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x618]
push ecx
push 0x104
push 0
push 2
call fcn.01028fb0
add esp, 0x10
jmp 0x1027067
cmp dword [0x104e340], 0
je 0x102700c
mov edx, dword [0x104f4ec]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x104f4f0], 0
mov dword [0x104f4f4], 0
mov dword [0x104f4f8], 0
mov dword [ebp - 0x8a8], 1
jmp 0x1027067
cmp dword [0x104ef38], 0
je 0x1027067
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x104f4e8]
jne 0x1027067
mov eax, dword [0x104ef38]
push eax
call dword [sym.imp.SEMMAP90.dll_SFMapi1Logoff]
add esp, 4
push 0x166
push 0
push 4
call fcn.01028fb0
add esp, 0xc
mov ecx, dword [0x104ef38]
push ecx
call dword [sym.imp.SEMMAP90.dll_SFMapi1DeInitialize]
add esp, 4
mov dword [0x104ef38], 0
mov dword [ebp - 0x8a8], 1
mov eax, dword [ebp - 0x8a8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret