Function at 0x4015dc
Capabilities:
Connect network resource

Disassembly:
jmp 0x46cde7
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
cmp dword [ebp + 0xb4], esi
mov word [ebp - 0x80], si
lea edi, [ebp - 0x7e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jbe 0x46ce37
call fcn.00401e97
sub eax, dword [0x7449c0]
cmp eax, dword [ebp + 0xb4]
jae 0x46ce37
xor eax, eax
jmp 0x46d219
call fcn.00401e97
mov dword [0x7449c0], eax
call fcn.0046ca95
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x70], ebx
je 0x46ce30
lea eax, [ebp - 0x80]
push eax
call fcn.00401550
pop ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 1
add ebx, 0x278
mov dword [ebp - 0x6c], 0x1a
lea esi, [ebx - 0x278]
movsx eax, byte [esi]
push eax
call fcn.00401eba
cmp eax, 0x61
pop ecx
jl 0x46d1f3
movsx eax, byte [esi]
push eax
call fcn.00401eba
cmp eax, 0x7a
pop ecx
jg 0x46d1f3
mov edi, 0x81
push edi
lea esi, [ebx - 0x110]
push esi
lea eax, [ebx - 0x90]
lea ecx, [ebx - 0x274]
push eax
push ecx
call sub.MPR.dll_WNetAddConnection2A
cmp eax, 0x55
mov dword [ebp - 0x60], eax
jne 0x46cf21
test byte [ebp + 0xb8], 1
je 0x46cf21
push 0x2f9d
push str..Network.c
push 1
push 1
push dword [ebx - 0x264]
call fcn.00402342
test eax, eax
jne 0x46cf21
push edi
push esi
lea edi, [ebx - 0x90]
push edi
lea eax, [ebx - 0x274]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
mov dword [ebp - 0x60], eax
jne 0x46d00f
mov eax, dword [ebx - 0x264]
push eax
push edi
push esi
push eax
push str.:2:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__succeeded_after_WNetCancelConnection2___s__
call fcn.00401375
add esp, 0x14
mov edi, str._GetLastError_
inc dword [ebx]
cmp dword [ebp - 0x60], 0
je 0x46d063
push dword [ebx - 0x260]
and dword [ebp - 0x64], 0
call fcn.004010dc
test eax, eax
pop ecx
jne 0x46d06d
push 0x5b4f40
push dword [ebx - 0x260]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x46d06d
push 0x103
lea eax, [ebp - 0x5b]
push 0
push eax
mov byte [ebp - 0x5c], 0
call fcn.00508d00
mov esi, 0x104
push esi
push dword [ebx - 0x260]
lea eax, [ebp - 0x5c]
push eax
call fcn.00402abd
push 0
push str._tamspos
push 0x5b4f40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0040167c
mov eax, dword [ebx - 0x260]
mov dword [ebp - 0x60], eax
add esp, 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebx - 0x260], eax
push 0x81
lea eax, [ebx - 0x110]
push eax
lea eax, [ebx - 0x90]
push eax
lea eax, [ebx - 0x274]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x46d043
mov esi, dword [ebp - 0x60]
push edi
push dword [ebx - 0x260]
push esi
call fcn.0040319d
pop ecx
push eax
push dword [ebx - 0x264]
call fcn.0040319d
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00401375
add esp, 0x14
mov dword [ebx - 0x260], esi
jmp 0x46d06d
cmp eax, 0x55
je 0x46cf21
push dword [ebp - 0x60]
mov eax, dword [ebx - 0x264]
mov edi, str._GetLastError_
push edi
push eax
lea ecx, [ebx - 0x90]
push ecx
push esi
push eax
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__CANT_REESTABLISH_after_WNetCancelConnection2___s_____:__s_ld
call fcn.004020c2
add esp, 0x1c
jmp 0x46cf26
push esi
push dword [ebx - 0x260]
mov esi, dword [ebp - 0x60]
push esi
mov dword [ebp - 0x64], 1
call fcn.00402abd
add esp, 0xc
mov dword [ebx - 0x260], esi
cmp dword [ebp - 0x64], 0
jne 0x46d19b
mov eax, dword [ebx - 0x264]
push edi
push dword [ebx]
lea esi, [ebx - 0x10]
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
movsd dword es:[edi], dword [esi]
call fcn.00402108
add esp, 0x14
push eax
lea eax, [ebx - 0x90]
push eax
lea eax, [ebx - 0x110]
push eax
push dword [ebp - 0x60]
push dword [ebx - 0x260]
push dword [ebp - 0x60]
call fcn.0040319d
pop ecx
push eax
push dword [ebx - 0x260]
call fcn.0040319d
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.00401375
add esp, 0x28
test byte [ebp + 0xb8], 2
je 0x46d122
push 0x81
xor edi, edi
push edi
push edi
lea esi, [ebx - 0x274]
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x46d117
push 0x80
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x46d105
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x46d11c
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.004020c2
pop ecx
jmp 0x46d121
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.00401375
pop ecx
sub esp, 0x10
mov edi, esp
lea esi, [ebx - 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]
sub esp, 0x10
lea esi, [ebp - 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.0040141a
push eax
call fcn.00512ab0
add esp, 0x24
cmp eax, 0x48190800
jle 0x46d196
mov eax, dword [ebx]
cmp eax, 0x19
jle 0x46d196
push eax
push 1
sub esp, 0x10
lea esi, [ebx - 0x10]
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.00402108
add esp, 0x14
push eax
push dword [ebx - 0x260]
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.00401375
push 0x27c
lea eax, [ebx - 0x278]
push 0
push eax
call fcn.00508d00
add esp, 0x1c
jmp 0x46d1f3
inc dword [ebp - 0x68]
jmp 0x46d1f3
push edi
push dword [ebx]
lea esi, [ebx - 0x10]
push 1
sub esp, 0x10
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.00402108
add esp, 0x14
push eax
lea eax, [ebx - 0x90]
push eax
lea eax, [ebx - 0x110]
push eax
push dword [ebx - 0x264]
lea esi, [ebx - 0x278]
push dword [ebx - 0x260]
movsx eax, byte [esi]
push eax
push str.:2:RestoreLostNetworkDrives___successfully_reinstated_drive__c:_WNetAddConnection2A___s_____s_____s_____s__:_TimeStamp__s_:_NumAttempts_d:_SUCCEEDED:__s
call fcn.00401375
push 0x27c
push 0
push esi
call fcn.00508d00
add esp, 0x30
add ebx, 0x27c
dec dword [ebp - 0x6c]
jne 0x46ce70
mov ecx, dword [ebp - 0x70]
call fcn.0046b5c4
push 1
push dword [ebp - 0x70]
call fcn.0050a6d0
mov eax, dword [ebp - 0x68]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0xac
leave
ret