Function at 0x5cd8a922
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5cd942c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
je 0x5cd8ac06
test eax, eax
je 0x5cd8ac06
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5cd8ac06
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5cd8ac06
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x5cd8ac06
xor eax, eax
mov esi, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.5cd8afd0
xor edx, edx
inc edx
test al, al
je 0x5cd8a9a9
lea edx, [ebp - 0x14]
call fcn.5cd8ba5d
mov esi, eax
test esi, esi
js 0x5cd8aa8b
xor edx, edx
inc edx
cmp dword [ebp - 0x14], 0
je 0x5cd8a9a9
mov dword [ebp - 0x18], edx
mov ecx, edi
call fcn.5cd8afd0
test al, al
je 0x5cd8a9cb
cmp word [edi], dx
jbe 0x5cd8a9cb
lea edx, [ebp - 8]
call fcn.5cd8ba8b
mov esi, eax
test esi, esi
js 0x5cd8aa8b
mov ecx, ebx
call fcn.5cd8afd0
test al, al
je 0x5cd8a9f0
xor eax, eax
inc eax
cmp word [ebx], ax
jbe 0x5cd8a9f0
lea edx, [ebp - 0xc]
call fcn.5cd8ba8b
mov esi, eax
test esi, esi
js 0x5cd8aa8b
cmp byte [0x5cd94618], 0
mov edi, dword [ebp - 0x10]
je 0x5cd8aa45
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 8]
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
test eax, eax
je 0x5cd8aa91
jmp 0x5cd8abf3
movzx esi, ax
or esi, 0x80070000
jmp 0x5cd8aa91
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jne 0x5cd8aa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
jle 0x5cd8aa91
movzx esi, si
jmp 0x5cd8aa3d
mov eax, ebx
call fcn.5cd87e60
mov eax, esp
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x5cd8aaa6
mov esi, 0x8007000e
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x5cd8ac0b
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push 0xffffffffffffffff
push edi
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5cd8aa5f
mov ebx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x5cd8aa5f
call fcn.5cd87e60
mov eax, esp
mov dword [ebp - 0x44], eax
test eax, eax
je 0x5cd8aa86
xor ecx, ecx
push ecx
push ecx
push edi
push eax
push 0xffffffffffffffff
push ebx
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5cd8aa5f
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x5cd8ab50
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5cd8aa5f
call fcn.5cd87e60
mov edi, esp
test edi, edi
je 0x5cd8aa86
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x10]
push edi
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5cd8aa5f
mov ebx, dword [ebp - 0xc]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x5cd8ac00
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5cd8ab85
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5cd8aa68
call fcn.5cd87e60
mov eax, esp
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5cd8ab9d
mov esi, 0x8007000e
jmp 0x5cd8aa8e
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5cd8ab7a
xor ecx, ecx
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.MPR.dll_WNetAddConnection2A]
test eax, eax
je 0x5cd8aa8e
mov edi, dword [ebp - 8]
jg 0x5cd8aa3a
mov esi, eax
jmp 0x5cd8aa91
xor ecx, ecx
mov edi, ecx
jmp 0x5cd8abb6
mov eax, 0x80004003
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.5cd87900
leave
ret 0x10