Function at 0x6e022c40
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x6e04df0e
call fcn.6e04acac
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], esi
cmp dword [edi + 0x250], ebx
je 0x6e0230c1
test esi, esi
je 0x6e0230c1
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x6e0230c1
cmp eax, 0x800
ja 0x6e0230c1
push esi
lfence
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x6e022dc3
push esi
lfence
call fcn.6e03064d
pop ecx
test ax, ax
jne 0x6e022dc3
push esi
lea ecx, [ebp - 0x40]
lfence
call fcn.6e01daf9
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ecx + eax*2]
mov dword [ebp - 0x14], 0xf
mov eax, edi
mov byte [ebp - 0x28], bl
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
call fcn.6e01daf9
mov byte [ebp - 0x44], bl
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
push edi
push esi
call fcn.6e001fb6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 0x400f0211
call fcn.6e01eaa6
add esp, 0xc
cmp byte [0x6e07289b], bl
jne 0x6e022d34
cmp byte [0x6e07289a], bl
je 0x6e022d66
push str.UNC_path_not_trusted
mov esi, 0x6e071350
push esi
call fcn.6e01daf9
cmp byte [0x6e07289a], 0
pop ecx
pop ecx
je 0x6e022d56
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07289b], 0
je 0x6e022d66
push esi
call fcn.6e004210
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, 0x10
jb 0x6e022da4
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x6e022d9b
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.6e01daf9
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.6e010d7a
mov eax, 0x80004005
jmp 0x6e0230c4
push dword [edi + 0xfc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x6e022dff
lea esi, [edi - 0x78]
push ebx
mov ecx, esi
lfence
call fcn.6e00ee42
push ebx
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp - 0x4c]
call fcn.6e01daf9
push 1
mov ecx, esi
call fcn.6e008cdb
test eax, eax
jne 0x6e022db9
mov esi, dword [ebp - 0x4c]
cmp dword [edi + 0xf4], ebx
je 0x6e0230c1
push esi
lea esi, [edi + 0xfc]
mov ecx, esi
lfence
call fcn.6e01daf9
push 0x44
call fcn.6e01daf9
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
je 0x6e022e34
mov ecx, eax
call fcn.6e002c56
jmp 0x6e022e36
mov eax, ebx
mov ecx, dword [edi + 0xf4]
mov dword [ebp - 0x44], eax
add ecx, 4
lea eax, [ebp - 0x44]
push eax
call fcn.6e01daf9
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x6e022e58
mov esi, ebx
jmp 0x6e022eac
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x6e022e6f
mov esi, ebx
mov dword [ebp - 0x44], esi
jmp 0x6e022e8f
lea esi, [eax + eax]
mov eax, esi
lfence
call fcn.6e04b1d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x44]
push eax
call fcn.6e01daf9
mov esi, eax
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0xfc]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x6e022eac
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x6e022eb1
mov dword [ebp - 0x4c], ebx
jmp 0x6e022ed2
lea esi, [eax + eax]
mov eax, esi
lfence
call fcn.6e04b1d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x4c]
push eax
call fcn.6e01daf9
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
push ebx
push SysReAllocString
push esi
call fcn.6e01daf9
mov esi, dword [edi + 0xf4]
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 4]
push 2
push ebx
mov ecx, dword [eax]
lea eax, [edx + 1]
push eax
push dword [ebp - 0x4c]
push str.docstream
push esi
call fcn.6e01daf9
test eax, eax
jns 0x6e022f1c
mov ebx, dword [ebp - 0x54]
lea ecx, [edi - 0x78]
xor eax, eax
mov word [ebx], ax
call fcn.6e009325
jmp 0x6e022db9
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [edi + 0xfc]
xorps xmm0, xmm0
mov dword [ebp - 4], 3
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x6e022f9c
mov eax, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
lfence
call dword [sym.imp.kernel32.dll_CreateFileA]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x6e022ff3
call fcn.6e004894
test eax, eax
jns 0x6e022ff6
lea esi, [edi - 0x78]
mov ecx, esi
call fcn.6e009325
mov eax, dword [ebp - 0x54]
or edx, 0xffffffff
mov word [eax], dx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x6e022f95
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebx
jmp 0x6e0230c4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x6e022fb0
mov eax, ebx
jmp 0x6e022fcb
lea esi, [eax + eax]
mov eax, esi
lfence
call fcn.6e04b1d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x44]
push eax
call fcn.6e01daf9
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x6e022f40
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
lfence
call fcn.6e01daf9
jmp 0x6e022f59
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.6e01daf9
test eax, eax
js 0x6e022f71
cmp dword [ebp - 0x4c], ebx
ja 0x6e022f71
jb 0x6e023022
cmp dword [ebp - 0x50], 0x7fffffff
ja 0x6e022f71
mov edx, dword [edi + 0xf4]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
lea eax, [ecx + 4]
push eax
push 1
push dword [ecx + 0x18]
push dword [ebp - 0x50]
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push dword [ecx + 8]
push ecx
push dword [edx + 0x10]
call fcn.6e01daf9
add esp, 0x24
lea esi, [edi - 0x78]
test eax, eax
jne 0x6e022f74
cmp dword [edi - 0x2c], eax
je 0x6e023068
push dword [edi - 0x2c]
mov ecx, esi
call fcn.6e01daf9
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.6e01daf9
mov ecx, dword [ebp - 0x5c]
mov dl, al
mov byte [ebp - 0x45], dl
test ecx, ecx
je 0x6e02308e
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dl, byte [ebp - 0x45]
mov ecx, ebx
mov dword [ebp - 0x5c], ecx
mov ebx, dword [ebp - 0x54]
xor eax, eax
test dl, dl
sete al
dec eax
mov word [ebx], ax
test dl, dl
jne 0x6e0230ad
mov ecx, esi
call fcn.6e009325
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ebp - 0x45]
xor eax, eax
mov ebx, 0x80004005
test dl, dl
cmovne ebx, eax
or edx, 0xffffffff
jmp 0x6e022f87
xor eax, eax
inc eax
lea esp, [ebp - 0x6c]
call fcn.6e04ac56
ret 0xc