Function at 0x4791fa
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5f2e68]
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 0x479242
call fcn.004fa8e4
sub eax, dword [0x6f1d0c]
cmp eax, dword [ebp + 8]
jae 0x479242
xor eax, eax
jmp 0x479654
call fcn.004fa8e4
mov dword [0x6f1d0c], eax
call fcn.00478e1f
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x124], ebx
je 0x47923b
lea eax, [ebp - 0x134]
push eax
call fcn.004fb9a6
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.004cca76
cmp eax, 0x61
jl 0x479625
cmp eax, 0x7a
jg 0x479625
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 0x47932e
test byte [ebp + 0xc], 1
je 0x47932e
push 0x2f8d
push str..Network.c
push 1
push dword [ebx - 0x264]
call fcn.00478d8e
test eax, eax
jne 0x47932e
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 0x47942d
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.0042bd38
add esp, 0x14
mov edi, str._GetLastError_
inc dword [ebx]
cmp dword [ebp - 0x114], 0
je 0x479488
mov esi, dword [ebx - 0x260]
and dword [ebp - 0x118], 0
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x479495
push 0x593cb8
push esi
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x479495
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.005306b0
add esp, 0xc
push esi
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
push 0
push str._tamspos
push 0x593cb8
push esi
push eax
call fcn.004ce6a0
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 0x479464
mov esi, dword [ebp - 0x114]
push edi
push dword [ebx - 0x260]
mov ecx, esi
call fcn.0047a07a
push eax
push ecx
mov ecx, dword [ebx - 0x264]
call fcn.0047a07a
pop ecx
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.0042bd38
add esp, 0x14
mov dword [ebx - 0x260], esi
jmp 0x479495
cmp eax, 0x55
je 0x47932e
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.0042b70b
add esp, 0x1c
jmp 0x479333
push dword [ebx - 0x260]
mov eax, dword [ebp - 0x114]
mov ecx, esi
mov dword [ebp - 0x118], 1
call fcn.004ccc3f
pop ecx
mov dword [ebx - 0x260], eax
cmp dword [ebp - 0x118], 0
jne 0x4795ca
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.004fa0a6
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.0047a07a
pop ecx
mov ecx, dword [ebx - 0x260]
push eax
call fcn.0047a07a
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.0042bd38
add esp, 0x28
test byte [ebp + 0xc], 2
je 0x47954b
push 0x81
xor edi, edi
push edi
push edi
lea esi, [ebx - 0x274]
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x479540
push 0x80
push edi
push edi
push esi
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x47952e
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
jmp 0x479545
push str._GetLastError_
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.0042b70b
pop ecx
jmp 0x47954a
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.0042bd38
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.004f9ee0
push eax
call fcn.0053146e
add esp, 0x24
cmp eax, 0x48190800
jle 0x4795c2
mov eax, dword [ebx]
cmp eax, 0x19
jle 0x4795c2
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.004fa0a6
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.0042bd38
push 0x27c
lea eax, [ebx - 0x278]
push 0
push eax
call fcn.005306b0
add esp, 0x1c
jmp 0x479625
inc dword [ebp - 0x11c]
jmp 0x479625
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.004fa0a6
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.0042bd38
add esp, 0x24
push 0x27c
push 0
push esi
call fcn.005306b0
add esp, 0xc
add ebx, 0x27c
dec dword [ebp - 0x120]
jne 0x47928a
mov ecx, dword [ebp - 0x124]
call fcn.00478eee
push dword [ebp - 0x124]
call fcn.0053061e
mov eax, dword [ebp - 0x11c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret