Function at 0x4096d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x41c]
mov ebx, ecx
push eax
movzx eax, byte [ebp + 8]
xor eax, 1
inc eax
shl eax, 8
or eax, 0x20019
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push str.SoftwareMicrosoftOffice
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x430], eax
call eax
test eax, eax
jne 0x4099cb
push edi
push eax
push eax
push eax
push eax
lea edi, [eax + 1]
mov dword [ebp - 0x420], 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push dword [ebp - 0x41c]
mov dword [ebp - 0x440], eax
call eax
test eax, eax
jne 0x4099ca
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x42c], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x428], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x434], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
mov dword [ebp - 0x438], eax
push esi
nop dword [eax]
movzx eax, word [ebp - 0x414]
lea ecx, [ebp - 0x412]
xor edx, edx
xor esi, esi
test ax, ax
je 0x40993a
nop word [eax + eax]
cmp ax, 0x2e
jne 0x4097b9
inc edx
jmp 0x4097c7
add eax, 0xffffffd0
cmp ax, 8
ja 0x40993a
inc esi
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4097b0
cmp edx, 1
jne 0x40993a
cmp esi, 3
jne 0x40993a
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x5c3768
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [ebp - 0x428]
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [ebp - 0x430]
test eax, eax
jne 0x40993a
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.Path
push dword [ebp - 0x424]
call dword [ebp - 0x434]
push dword [ebp - 0x424]
mov esi, eax
call dword [ebp - 0x42c]
test esi, esi
jne 0x40993a
cmp dword [ebp - 0x418], 1
jbe 0x40993a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409890
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x418], ecx
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x4098dd
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx + 1]
mov dword [ebp - 0x418], eax
add eax, eax
cmp eax, 0x208
jae 0x4099dc
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4098e6
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push str.EXCEL.EXE
lea eax, [eax + ecx*2]
push eax
call dword [ebp - 0x428]
add esp, 8
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x438]
test eax, eax
je 0x409934
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x40998c
cmp eax, 6
je 0x409985
mov dword [ebx], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0x104
push ecx
lea ecx, [ebp - 0x414]
mov eax, edi
push ecx
push eax
push dword [ebp - 0x41c]
inc edi
call dword [ebp - 0x440]
test eax, eax
je 0x409790
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x409991
mov eax, 2
mov dword [ebx], eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 4]
push 0x10
push eax
call fcn.0055b621
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebx + 0x24]
push 0x104
push eax
call fcn.0055b621
add esp, 0x18
push dword [ebp - 0x41c]
call dword [ebp - 0x42c]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret 4
call fcn.0054e504
int3