Function at 0x41ddb0
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push str.Map_drive__s_n
push 3
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], eax
call fcn.0041a380
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
neg eax
jne 0x41e04c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x428]
push esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.RemotePath
push dword [ebp - 0x424]
call ebx
mov esi, eax
test esi, esi
jne 0x41dead
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push str.ProviderName
push dword [ebp - 0x424]
call ebx
mov esi, eax
test esi, esi
jne 0x41dead
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push str.UserName
push dword [ebp - 0x424]
call ebx
mov esi, eax
test esi, esi
je 0x41decc
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x42c], 4
jne 0x41ded9
xor esi, esi
jmp 0x41deee
mov eax, 1
cmp eax, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
sbb esi, esi
and esi, eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
push str.attempting_connection_for___s__to___s__as___s__n
push 2
call fcn.0041a380
mov ebx, dword [ebp - 0x430]
add esp, 0x14
test ebx, ebx
je 0x41df49
push esi
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x114]
push str.Mapping__s:_to___20s...
push eax
call fcn.00404cf0
lea ecx, [ebp - 0x114]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41df36
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
call ebx
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x454], 1
push 0xa
push eax
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x44c], 3
call fcn.00427b16
push 0x446fcc
lea eax, [ebp - 0x10]
push 0xa
push eax
call fcn.00427b8d
add esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x454]
push 0
push esi
push 0
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
push esi
push str.WNetAddConnection2_returned__d_n
push 2
call fcn.0041a380
add esp, 0xc
test ebx, ebx
je 0x41e033
lea eax, [ebp - 0x114]
test esi, esi
jne 0x41dfed
push str._Successful__r_n
push 0x104
push eax
call fcn.00427b16
add esp, 0xc
jmp 0x41e012
cmp esi, 0x35
jne 0x41e002
push str._Failure____Path_not_found__r_n
push eax
call fcn.00404cf0
add esp, 8
jmp 0x41e012
push esi
push esi
push str._Failure_____d__0x_08x___r_n
push eax
call fcn.00404cf0
add esp, 0x10
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
jmp 0x41e020
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e020
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
call ebx
push dword [ebp - 0x424]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x434]
call esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret