Function at 0x4643fb
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x59a240]
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 0x464433
call fcn.004ca9ca
sub eax, dword [0x685030]
cmp eax, dword [ebp + 8]
jb 0x46444e
call fcn.004ca9ca
mov dword [0x685030], eax
call fcn.00460e4f
mov ebx, eax
mov dword [ebp - 0x138], ebx
test ebx, ebx
jne 0x464455
xor eax, eax
jmp 0x464873
lea eax, [ebp - 0x118]
push eax
call fcn.004c8fad
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.004a0b74
pop ecx
cmp eax, 0x61
jl 0x46480e
movsx eax, byte [esi]
push eax
call fcn.004a0b74
pop ecx
cmp eax, 0x7a
jg 0x46480e
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 0x46456e
test byte [ebp + 0xc], 1
je 0x46456e
push 0x2f9b
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
push 1
push 1
push dword [ebx - 0x1d4]
call fcn.0046794e
test eax, eax
jne 0x46456e
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 0x464549
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.00425c08
add esp, 0x14
jmp 0x46456e
cmp esi, 0x55
je 0x46456e
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.004255b9
add esp, 0x1c
inc dword [ebx + 0x90]
test esi, esi
je 0x464671
push dword [ebx - 0x1d0]
xor esi, esi
mov dword [ebp - 0x120], esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x464671
push 0x5404d0
push dword [ebx - 0x1d0]
call fcn.004a0f55
pop ecx
pop ecx
test eax, eax
je 0x464671
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004e4da0
push 0x104
push dword [ebx - 0x1d0]
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
push esi
push str._tamspos
push 0x5404d0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a05e9
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 0x464652
push str._GetLastError_
push ecx
push esi
call fcn.0045fce9
pop ecx
push eax
push dword [ebx - 0x1d4]
call fcn.0045fce9
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00425c08
add esp, 0x14
jmp 0x46466b
push 0x104
push ecx
push esi
mov dword [ebp - 0x120], 1
call fcn.004a11a5
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 0x4647ca
mov ebx, dword [ebx - 0x1d4]
call fcn.004c9acc
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.0045fce9
mov ebx, dword [ebp - 0x124]
pop ecx
push eax
push dword [ebx - 0x1d0]
call fcn.0045fce9
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.00425c08
add esp, 0x28
test byte [ebp + 0xc], 2
je 0x46473a
push 0x81
xor edi, edi
lea esi, [ebx - 0x1e4]
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x46472f
push 0x80
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x46471d
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x464734
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.004255b9
pop ecx
jmp 0x464739
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.00425c08
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.004ca88e
push eax
call fcn.004ee48a
add esp, 0x24
cmp eax, 0x48190800
jle 0x4647bb
mov eax, dword [ebx + 0x90]
cmp eax, 0x19
jle 0x4647bb
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.004c9acc
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.00425c08
push 0x27c
push 0
lea esi, [ebx - 0x1e8]
push esi
call fcn.004e4da0
add esp, 0x1c
jmp 0x464808
mov edi, dword [ebp - 0x11c]
inc edi
mov dword [ebp - 0x11c], edi
jmp 0x46480e
call fcn.004c9acc
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.00425c08
push 0x27c
push 0
push esi
call fcn.004e4da0
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 0x4644a5
mov esi, dword [ebp - 0x138]
push esi
call fcn.00464a39
push esi
call fcn.004ee46f
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret