Function at 0x4705e6
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
cmp dword [ebp + 8], esi
mov word [ebp - 0x134], si
lea edi, [ebp - 0x132]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jbe 0x47062e
call fcn.004f16be
sub eax, dword [0x6c3cc4]
cmp eax, dword [ebp + 8]
jae 0x47062e
xor eax, eax
jmp 0x470a40
call fcn.004f16be
mov dword [0x6c3cc4], eax
call fcn.0047020b
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x124], ebx
je 0x470627
lea eax, [ebp - 0x134]
push eax
call fcn.004f2780
pop ecx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], 1
add ebx, 0x278
mov dword [ebp - 0x120], 0x1a
movsx eax, byte [ebx - 0x278]
call fcn.004c39be
cmp eax, 0x61
jl 0x470a11
cmp eax, 0x7a
jg 0x470a11
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 - 0x114], eax
jne 0x47071a
test byte [ebp + 0xc], 1
je 0x47071a
push 0x2f8d
push str..Network.c
push 1
push dword [ebx - 0x264]
call fcn.0047017a
test eax, eax
jne 0x47071a
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 - 0x114], eax
jne 0x470819
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.00426c01
add esp, 0x14
mov edi, str._GetLastError_
inc dword [ebx]
cmp dword [ebp - 0x114], 0
je 0x470874
mov esi, dword [ebx - 0x260]
and dword [ebp - 0x118], 0
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x470881
push 0x570cf0
push esi
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x470881
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
push esi
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.004c3b66
pop ecx
push 0
push str._tamspos
push 0x570cf0
push esi
push eax
call fcn.004c5572
mov eax, dword [ebx - 0x260]
mov dword [ebp - 0x114], eax
add esp, 0x14
lea eax, [ebp - 0x110]
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 0x470850
mov esi, dword [ebp - 0x114]
push edi
push dword [ebx - 0x260]
mov ecx, esi
call fcn.00471469
push eax
push ecx
mov ecx, dword [ebx - 0x264]
call fcn.00471469
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.00426c01
add esp, 0x14
mov dword [ebx - 0x260], esi
jmp 0x470881
cmp eax, 0x55
je 0x47071a
push dword [ebp - 0x114]
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.004265da
add esp, 0x1c
jmp 0x47071f
push dword [ebx - 0x260]
mov eax, dword [ebp - 0x114]
mov ecx, esi
mov dword [ebp - 0x118], 1
call fcn.004c3b66
pop ecx
mov dword [ebx - 0x260], eax
cmp dword [ebp - 0x118], 0
jne 0x4709b6
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 - 0x114], eax
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
mov ecx, dword [ebp - 0x114]
add esp, 0x14
push eax
lea eax, [ebx - 0x90]
push eax
lea eax, [ebx - 0x110]
push eax
push ecx
push dword [ebx - 0x260]
push ecx
call fcn.00471469
pop ecx
mov ecx, dword [ebx - 0x260]
push eax
call fcn.00471469
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.00426c01
add esp, 0x28
test byte [ebp + 0xc], 2
je 0x470937
push 0x81
xor edi, edi
push edi
push edi
lea esi, [ebx - 0x274]
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47092c
push 0x80
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x47091a
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x470931
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.004265da
pop ecx
jmp 0x470936
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.00426c01
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 - 0x134]
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.004f0d62
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x48190800
jle 0x4709ae
mov eax, dword [ebx]
cmp eax, 0x19
jle 0x4709ae
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.004f0f28
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.00426c01
push 0x27c
lea eax, [ebx - 0x278]
push 0
push eax
call fcn.005117f0
add esp, 0x1c
jmp 0x470a11
inc dword [ebp - 0x11c]
jmp 0x470a11
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.004f0f28
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.00426c01
add esp, 0x24
push 0x27c
push 0
push esi
call fcn.005117f0
add esp, 0xc
add ebx, 0x27c
dec dword [ebp - 0x120]
jne 0x470676
mov ecx, dword [ebp - 0x124]
call fcn.004702da
push dword [ebp - 0x124]
call fcn.00511758
mov eax, dword [ebp - 0x11c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret