Function at 0x41f668
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x118]
cmp dword [ebp + 8], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jbe 0x41f6a0
call fcn.00438ea7
sub eax, dword [0x57cdf8]
cmp eax, dword [ebp + 8]
jb 0x41f6bb
call fcn.00438ea7
mov dword [0x57cdf8], eax
call fcn.0041c309
mov ebx, eax
mov dword [ebp - 0x138], ebx
test ebx, ebx
jne 0x41f6c2
xor eax, eax
jmp 0x41fae0
lea eax, [ebp - 0x118]
push eax
call fcn.00437e9d
xor edi, edi
mov dword [ebp - 0x120], 1
add ebx, 0x1e8
mov dword [ebp - 0x11c], edi
pop ecx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x134], 0x1a
lea eax, [ebx - 0x80]
lea ecx, [ebx - 0x1e4]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], eax
lea esi, [ebx - 0x1e8]
movsx eax, byte [esi]
push eax
call fcn.0042e91d
pop ecx
cmp eax, 0x61
jl 0x41fa7b
movsx eax, byte [esi]
push eax
call fcn.0042e91d
pop ecx
cmp eax, 0x7a
jg 0x41fa7b
mov edi, 0x81
push edi
push dword [ebp - 0x128]
push ebx
push dword [ebp - 0x12c]
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, 0x55
jne 0x41f7db
test byte [ebp + 0xc], 1
je 0x41f7db
push 0x2fc3
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateNetwork.c
push 1
push 1
push dword [ebx - 0x1d4]
call fcn.0042212e
test eax, eax
jne 0x41f7db
push edi
push dword [ebp - 0x130]
lea eax, [ebx - 0x1e4]
push ebx
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jne 0x41f7b6
mov ecx, dword [ebx - 0x1d4]
lea eax, [ebx - 0x80]
push ecx
push ebx
push eax
push ecx
push str.:2:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__succeeded_after_WNetCancelConnection2___s__
call fcn.0040953d
add esp, 0x14
jmp 0x41f7db
cmp esi, 0x55
je 0x41f7db
mov ecx, dword [ebx - 0x1d4]
lea eax, [ebx - 0x80]
push esi
push str._GetLastError_
push ecx
push ebx
push eax
push ecx
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__CANT_REESTABLISH_after_WNetCancelConnection2___s_____:__s_ld
call fcn.0040906e
add esp, 0x1c
inc dword [ebx + 0x90]
test esi, esi
je 0x41f8de
push dword [ebx - 0x1d0]
xor esi, esi
mov dword [ebp - 0x120], esi
call fcn.0042da83
pop ecx
test eax, eax
jne 0x41f8de
push 0x46f938
push dword [ebx - 0x1d0]
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x41f8de
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0043dc10
push 0x104
push dword [ebx - 0x1d0]
lea eax, [ebp - 0x108]
push eax
call fcn.0042ee2a
push esi
push str._tamspos
push 0x46f938
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042e445
mov esi, dword [ebx - 0x1d0]
lea eax, [ebp - 0x108]
add esp, 0x2c
mov dword [ebx - 0x1d0], eax
lea eax, [ebx - 0x80]
push edi
push eax
push ebx
lea eax, [ebx - 0x1e4]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov ecx, dword [ebx - 0x1d0]
test eax, eax
je 0x41f8bf
push str._GetLastError_
push ecx
push esi
call fcn.0041b78e
pop ecx
push eax
push dword [ebx - 0x1d4]
call fcn.0041b78e
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.0040953d
add esp, 0x14
jmp 0x41f8d8
push 0x104
push ecx
push esi
mov dword [ebp - 0x120], 1
call fcn.0042ee2a
add esp, 0xc
mov dword [ebx - 0x1d0], esi
mov ecx, dword [ebx + 0x90]
lea eax, [ebx + 0x80]
push str._GetLastError_
push ecx
push 1
sub esp, 0x10
mov esi, eax
cmp dword [ebp - 0x120], 0
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x41fa37
mov ebx, dword [ebx - 0x1d4]
call fcn.0043868c
add esp, 0x14
push eax
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [eax - 0x80]
push ecx
push ebx
push dword [eax - 0x1d0]
push ebx
call fcn.0041b78e
mov ebx, dword [ebp - 0x124]
pop ecx
push eax
push dword [ebx - 0x1d0]
call fcn.0041b78e
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___could_not_reestablish_the_mapped_drive__CurUser:_s__s_:_WNetAddConnection2A___s_____s_____s_____s__:_TimeStamp__s_:_NumAttempts_d:_FAILED:__s
call fcn.0040953d
add esp, 0x28
test byte [ebp + 0xc], 2
je 0x41f9a7
push 0x81
xor edi, edi
lea esi, [ebx - 0x1e4]
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x41f99c
push 0x80
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x41f98a
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x41f9a1
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.0040906e
pop ecx
jmp 0x41f9a6
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.0040953d
pop ecx
sub esp, 0x10
lea esi, [ebx + 0x80]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00438d9e
push eax
call fcn.0044733a
add esp, 0x24
cmp eax, 0x48190800
jle 0x41fa28
mov eax, dword [ebx + 0x90]
cmp eax, 0x19
jle 0x41fa28
push eax
push 1
sub esp, 0x10
lea esi, [ebx + 0x80]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0043868c
add esp, 0x14
push eax
push dword [ebx - 0x1d0]
push str.:7:RestoreLostNetworkDrives___EAP:_the_entry___s__is_too_old__cannot_be_reestablished__and_so_is_being_discarded:_TimeStamp__s_:_NumAttempts_d
call fcn.0040953d
push 0x27c
push 0
lea esi, [ebx - 0x1e8]
push esi
call fcn.0043dc10
add esp, 0x1c
jmp 0x41fa75
mov edi, dword [ebp - 0x11c]
inc edi
mov dword [ebp - 0x11c], edi
jmp 0x41fa7b
call fcn.0043868c
add esp, 0x14
lea ecx, [ebx - 0x80]
lea esi, [ebx - 0x1e8]
push eax
movsx eax, byte [esi]
push ebx
push ecx
push dword [ebx - 0x1d4]
push dword [ebx - 0x1d0]
push eax
push str.:2:RestoreLostNetworkDrives___successfully_reinstated_drive__c:_WNetAddConnection2A___s_____s_____s_____s__:_TimeStamp__s_:_NumAttempts_d:_SUCCEEDED:__s
call fcn.0040953d
push 0x27c
push 0
push esi
call fcn.0043dc10
add esp, 0x30
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x128]
add ebx, 0x27c
sub dword [ebp - 0x134], 1
mov dword [ebp - 0x124], ebx
lea eax, [eax + 0x27c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x12c]
lea eax, [eax + 0x27c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x130]
lea eax, [eax + 0x27c]
mov dword [ebp - 0x130], eax
jne 0x41f712
mov esi, dword [ebp - 0x138]
push esi
call fcn.0041faef
push esi
call fcn.0044731f
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret