Function at 0x462670
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x118], xmm0
test esi, esi
je 0x4626a6
call fcn.004d9850
sub eax, dword [0x66b998]
cmp eax, esi
jb 0x4626c1
call fcn.004d9850
mov dword [0x66b998], eax
call fcn.0045e8b0
mov ebx, eax
mov dword [ebp - 0x134], ebx
test ebx, ebx
jne 0x4626d4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
call fcn.004d7a40
lea esi, [ebx + 0x1e8]
mov dword [ebp - 0x11c], 0
lea edi, [esi - 0x80]
mov dword [ebp - 0x120], 1
lea eax, [esi - 0x1e4]
mov dword [ebp - 0x130], 0x1a
add esp, 4
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], edi
movsx eax, byte [esi - 0x1e8]
push eax
call fcn.004a9150
add esp, 4
cmp eax, 0x61
jl 0x462a20
movsx eax, byte [esi - 0x1e8]
push eax
call fcn.004a9150
add esp, 4
cmp eax, 0x7a
jg 0x462a20
push 0x81
push edi
push esi
push dword [ebp - 0x124]
call sub.MPR.dll_WNetAddConnection2A
mov edx, eax
cmp edx, 0x55
jne 0x4628a1
test byte [ebp + 0xc], 1
je 0x4628a1
push 0x81
push dword [ebp - 0x128]
lea eax, [esi - 0x1e4]
push esi
push eax
call sub.MPR.dll_WNetAddConnection2A
mov edx, eax
test edx, edx
jne 0x462872
mov ecx, dword [esi - 0x1d4]
lea eax, [esi - 0x80]
push ecx
push esi
push eax
push ecx
push str.:2:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__succeeded_after_WNetCancelConnection2___s__
call fcn.00424fd0
lea ebx, [esi + 0x90]
add esp, 0x14
inc dword [ebx]
cmp dword [ebp - 0x120], 0
lea edi, [esi - 0x80]
mov eax, ebx
jne 0x4629c9
movups xmm0, xmmword [esi + 0x80]
mov edi, dword [esi - 0x1d4]
push str._GetLastError_
push dword [eax]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004d86f0
add esp, 0x14
push eax
push esi
lea eax, [esi - 0x80]
push eax
push edi
push dword [esi - 0x1d0]
push edi
call fcn.0045d7e0
add esp, 4
push eax
push dword [esi - 0x1d0]
call fcn.0045d7e0
add esp, 4
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.00424fd0
add esp, 0x28
test byte [ebp + 0xc], 2
je 0x462abe
push 0x81
push 0
push 0
lea edi, [esi - 0x1e4]
push edi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x462ab1
push 0x80
push 0
push 0
push edi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x462a9d
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x462ab6
cmp edx, 0x55
je 0x4628a1
mov ecx, dword [esi - 0x1d4]
lea eax, [esi - 0x80]
push edx
push str._GetLastError_
push ecx
push esi
push eax
push ecx
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__CANT_REESTABLISH_after_WNetCancelConnection2___s_____:__s_ld
call fcn.00424a90
lea ebx, [esi + 0x90]
add esp, 0x1c
inc dword [ebx]
jmp 0x4628b5
inc dword [esi + 0x90]
lea ebx, [esi + 0x90]
test edx, edx
je 0x4627bf
push dword [esi - 0x1d0]
mov dword [ebp - 0x120], 0
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x4627bf
push str.client
push dword [esi - 0x1d0]
call fcn.004a96e0
add esp, 8
test eax, eax
je 0x4627bf
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e69c0
push 0x104
push dword [esi - 0x1d0]
lea eax, [ebp - 0x108]
push eax
call fcn.004a9a20
push 0
push str._tamspos
push str.client
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a89e0
mov edi, dword [esi - 0x1d0]
lea eax, [ebp - 0x108]
add esp, 0x2c
mov dword [esi - 0x1d0], eax
lea eax, [esi - 0x80]
push 0x81
push eax
push esi
lea eax, [esi - 0x1e4]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov ecx, dword [esi - 0x1d0]
test eax, eax
je 0x4629a5
push str._GetLastError_
push ecx
push edi
call fcn.0045d7e0
add esp, 4
push eax
push dword [esi - 0x1d4]
call fcn.0045d7e0
add esp, 4
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00424fd0
add esp, 0x14
mov dword [esi - 0x1d0], edi
mov eax, ebx
jmp 0x4627d1
push 0x104
push ecx
push edi
mov dword [ebp - 0x120], 1
call fcn.004a9a20
mov dword [esi - 0x1d0], edi
add esp, 0xc
mov eax, ebx
lea edi, [esi - 0x80]
movups xmm0, xmmword [esi + 0x80]
push str._GetLastError_
push dword [eax]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004d86f0
add esp, 0x14
push eax
movsx eax, byte [esi - 0x1e8]
push esi
push edi
push dword [esi - 0x1d4]
lea edi, [esi - 0x1e8]
push dword [esi - 0x1d0]
push eax
push str.:2:RestoreLostNetworkDrives___successfully_reinstated_drive__c:_WNetAddConnection2A___s_____s_____s_____s__:_TimeStamp__s_:_NumAttempts_d:_SUCCEEDED:__s
call fcn.00424fd0
push 0x27c
push 0
push edi
call fcn.004e69c0
add esp, 0x30
mov ebx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x12c]
add esi, 0x27c
sub dword [ebp - 0x130], 1
lea eax, [eax + 0x27c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
mov edi, dword [ebp - 0x12c]
lea eax, [eax + 0x27c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
lea eax, [eax + 0x27c]
mov dword [ebp - 0x128], eax
jne 0x462722
mov esi, dword [ebp - 0x134]
push esi
call fcn.00462ca0
push esi
call fcn.004eea9f
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.00424a90
add esp, 8
jmp 0x462abe
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.00424fd0
add esp, 4
movups xmm0, xmmword [esi + 0x80]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x118]
movups xmmword [eax], xmm0
call fcn.004d96a0
cdq
add esp, 0x20
xor eax, edx
sub eax, edx
cmp eax, 0x48190800
jle 0x462b3d
mov eax, dword [ebx]
cmp eax, 0x19
jle 0x462b3d
movups xmm0, xmmword [esi + 0x80]
push eax
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004d86f0
add esp, 0x14
push eax
push dword [esi - 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.00424fd0
push 0x27c
push 0
lea edi, [esi - 0x1e8]
push edi
call fcn.004e69c0
add esp, 0x1c
jmp 0x462a20
mov ebx, dword [ebp - 0x11c]
inc ebx
mov dword [ebp - 0x11c], ebx
jmp 0x462a26