Function at 0x4b4ae0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jbe 0x4b4b48
call fcn.0040323d
sub eax, dword [0x81699c]
cmp eax, dword [ebp + 8]
jae 0x4b4b48
xor eax, eax
jmp 0x4b52e4
call fcn.0040323d
mov dword [0x81699c], eax
call fcn.004b4770
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b4b67
xor eax, eax
jmp 0x4b52e4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401c67
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0
jmp 0x4b4b93
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0x1a
jge 0x4b52c0
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
push edx
call fcn.00403288
add esp, 4
cmp eax, 0x61
jl 0x4b52bb
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
push edx
call fcn.00403288
add esp, 4
cmp eax, 0x7a
jg 0x4b52bb
push 0x81
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x168]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x1e8]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 4]
push edx
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x55
jne 0x4b4d74
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x4b4d74
push 0x2f9d
push 0x69a4bc
push 1
push 1
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.004014a6
test eax, eax
jne 0x4b4d74
push 0x81
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x168]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x1e8]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 4]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b4d0e
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x14]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x1e8]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x168]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x14]
push eax
push str.:2:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__succeeded_after_WNetCancelConnection2___s__
call fcn.004018ca
add esp, 0x14
jmp 0x4b4d74
cmp dword [ebp - 0x10], 0x55
je 0x4b4d74
mov ecx, dword [ebp - 0x10]
push ecx
push 0x69a534
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x1e8]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x168]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x14]
push ecx
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s__s__s__CANT_REESTABLISH_after_WNetCancelConnection2___s_____:__s_ld
call fcn.00401014
add esp, 0x1c
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x278]
add ecx, 1
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov dword [eax + edx + 0x278], ecx
cmp dword [ebp - 0x10], 0
je 0x4b4f69
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x18]
push eax
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4b4f69
push 0x69a5c4
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x18]
push eax
call fcn.00401041
add esp, 8
test eax, eax
je 0x4b4f69
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea ecx, [ebp - 0x137]
push ecx
call fcn.005b02a0
add esp, 0xc
push 0x104
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x18]
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.00402725
add esp, 0xc
push 0
push str._tamspos
push str.client
push 0x104
lea eax, [ebp - 0x138]
push eax
call fcn.00402004
add esp, 0x14
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x138]
mov dword [edx + ecx + 0x18], eax
push 0x81
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x168]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x1e8]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 4]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4b4f2d
push 0x69a5e0
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040214e
add esp, 4
push eax
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x14]
push ecx
call fcn.0040214e
add esp, 4
push eax
push str.:3:RestoreLostNetworkDrives___FAILED_to_map_alternate:__CurUser:_s__s_:___s_:__s
call fcn.004018ca
add esp, 0x14
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx + 0x18], ecx
jmp 0x4b4f69
mov dword [ebp - 4], 1
push 0x104
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00402725
add esp, 0xc
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx + eax + 0x18], edx
cmp dword [ebp - 4], 0
jne 0x4b51e5
push 0x69a644
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x278]
push edx
push 1
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x268]
sub esp, 0x10
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
call fcn.004010a5
add esp, 0x14
push eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x1e8]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x168]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x18]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x14]
push edx
call fcn.0040214e
add esp, 4
push eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x18]
push edx
call fcn.0040214e
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.004018ca
add esp, 0x28
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x4b50ce
push 0x81
push 0
push 0
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 4]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4b50c1
push 0x80
push 0
push 0
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 4]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
jne 0x4b50ad
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL____NO_UPDATE_PROFILE_____reestablished_drive_temporarily_but_profile_COULD_NOT_BE_UPDATED_
call fcn.004018ca
add esp, 4
jmp 0x4b50bf
push 0x69a7a4
push str.:9:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__FAILED_too:__s
call fcn.00401014
add esp, 8
jmp 0x4b50ce
push str.:7:RestoreLostNetworkDrives__:_WNetAddConnection2A__s_NULL_NULL__reestablished_drive_temporarily_with_wrong_credentials.
call fcn.004018ca
add esp, 4
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x268]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
call fcn.00401a00
add esp, 0x20
push eax
call fcn.005bad40
add esp, 4
cmp eax, 0x48190800
jle 0x4b51d7
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x27c
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx + 0x278], 0x19
jle 0x4b51d7
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x278]
push edx
push 1
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x268]
sub esp, 0x10
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
call fcn.004010a5
add esp, 0x14
push eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x18]
push edx
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.004018ca
add esp, 0x10
push 0x27c
push 0
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x27c
add eax, dword [ebp - 0xc]
push eax
call fcn.005b02a0
add esp, 0xc
jmp 0x4b51e0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x4b52bb
push 0x69a918
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x278]
push ecx
push 1
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x268]
sub esp, 0x10
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
call fcn.004010a5
add esp, 0x14
push eax
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x1e8]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x168]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax + edx]
push ecx
push str.:2:RestoreLostNetworkDrives___successfully_reinstated_drive__c:_WNetAddConnection2A___s_____s_____s_____s__:_TimeStamp__s_:_NumAttempts_d:_SUCCEEDED:__s
call fcn.004018ca
add esp, 0x24
push 0x27c
push 0
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x27c
add edx, dword [ebp - 0xc]
push edx
call fcn.005b02a0
add esp, 0xc
jmp 0x4b4b8a
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b48c0
add esp, 4
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005b16b0
add esp, 8
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret