Function at 0x42a7b0
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x26c], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ebx, [edi + 0x18]
mov dword [ebp - 4], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
xor ecx, ecx
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], cx
mov byte [ebp - 4], 3
mov eax, 0xe
mov dword [edi + 0x60], 0xe
nop word [eax + eax]
push eax
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0ExcelInstallRoot
push eax
call fcn.0041bbe0
add esp, 0xc
mov dword [ebp - 0x264], 0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x42a88c
mov ecx, str.advapi32.dll
call fcn.0040f280
mov esi, eax
push 0x4f4678
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push esi
mov dword [ebp - 0x260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f4698
push esi
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegSetValueExW
push esi
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegEnumKeyExW
push esi
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegEnumValueW
push esi
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegDeleteValueW
push esi
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f46ec
push esi
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x258], eax
test ecx, ecx
je 0x42a933
push ecx
call eax
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
push eax
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [ebp - 0x260]
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x42abaa
xor ecx, ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
push ecx
xor edi, edi
mov dword [ebp - 0x23c], 1
push edi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x234], edi
push ecx
push edi
push str.Path
push eax
call dword [ebp - 0x254]
test eax, eax
jne 0x42ab5a
mov eax, dword [ebp - 0x234]
inc eax
push eax
call fcn.0047d739
mov esi, eax
mov eax, dword [ebp - 0x234]
inc eax
push eax
push edi
push esi
call fcn.0047f230
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x23c]
push eax
push edi
push str.Path
push dword [ebp - 0x264]
call dword [ebp - 0x254]
test eax, eax
jne 0x42ab5a
cmp byte [esi], al
je 0x42aa2d
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42aa10
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00410170
mov edi, 1
push esi
call fcn.0047ce1d
add esp, 4
test edi, edi
je 0x42ab5a
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x42ab5a
mov edx, dword [ebx + 0x14]
mov eax, ebx
cmp edx, 8
jb 0x42aa55
mov eax, dword [ebx]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x42aaad
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x42aa90
lea edi, [ecx + 1]
mov esi, ebx
mov dword [ebx + 0x10], edi
cmp edx, 8
jb 0x42aa75
mov esi, dword [ebx]
push 2
lea eax, [esi + ecx*2]
push 0x4f4818
push eax
call fcn.0047ecb0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x42aaad
push 1
push 0x4f4818
mov byte [ebp - 0x268], 0
mov ecx, ebx
push dword [ebp - 0x268]
push 1
call fcn.0040a8f0
lea eax, [ebp - 0x230]
cmp eax, ebx
je 0x42aad0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x42aac1
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.00410170
mov edx, dword [ebp - 0x21c]
mov eax, edx
mov ecx, dword [ebp - 0x220]
sub eax, ecx
cmp eax, 9
jb 0x42ab19
cmp edx, 8
lea esi, [ebp - 0x230]
push 0x12
cmovae esi, dword [ebp - 0x230]
lea edi, [ecx + 9]
push str.excel.exe
mov dword [ebp - 0x220], edi
lea eax, [esi + ecx*2]
push eax
call fcn.0047ecb0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x42ab3a
push 9
push str.excel.exe
mov byte [ebp - 0x240], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x240]
push 9
call fcn.0040a8f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42abd2
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x42ab9e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ab94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42acd6
push edx
push ecx
call fcn.0047ce0f
add esp, 8
mov edi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 7
test eax, eax
je 0x42abb9
push eax
call dword [ebp - 0x258]
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x60]
dec eax
mov dword [edi + 0x60], eax
cmp eax, 8
jg 0x42a850
jmp 0x42acb1
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x42abfe
cmp dword [ebp - 0x21c], 8
mov ecx, edi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00410170
push dword [edi + 0x60]
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0_
push eax
call fcn.0041bbe0
lea edx, [ebp - 0x218]
add esp, 0xc
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42ac20
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [edi + 0x48]
push edx
push eax
call fcn.00410170
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x42ac7f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ac75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42acd6
push edx
push ecx
call fcn.0047ce0f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x42acb1
push eax
call dword [ebp - 0x258]
mov dword [edi + 0x64], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
call fcn.004895af
int3