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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dad4
sub ecx, edx
lea eax, [esi - 1]
add eax, ecx
push eax
push str.Map_drive__s_n
push 3
mov dword [ebp - 0x430], eax
call fcn.0041a380
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
neg eax
jne 0x41dd69
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x428]
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 esi
mov edi, eax
test edi, edi
je 0x41db73
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.ProviderName
push dword [ebp - 0x424]
call esi
mov edi, eax
test edi, edi
jne 0x41db54
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
push str.UserName
push dword [ebp - 0x424]
call esi
mov esi, eax
test esi, esi
je 0x41dbf9
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
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 0x41dc06
xor esi, esi
jmp 0x41dc1b
mov eax, 1
cmp eax, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
sbb esi, esi
and esi, eax
mov edi, dword [ebp - 0x430]
lea eax, [ebp - 0x218]
push esi
push eax
push edi
push str.attempting_connection_for___s__to___s__as___s__n
push 2
call fcn.0041a380
add esp, 0x14
test ebx, ebx
je 0x41dc76
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 0x41dc63
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
call ebx
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x450], 1
push 0xa
push eax
mov dword [ebp - 0x44c], 1
mov dword [ebp - 0x448], 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 - 0x440], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x450]
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 0x41dd5b
lea eax, [ebp - 0x114]
test esi, esi
jne 0x41dd1a
push str._Successful__r_n
push 0x104
push eax
call fcn.00427b16
add esp, 0xc
jmp 0x41dd3f
cmp esi, 0x35
jne 0x41dd2f
push str._Failure____Path_not_found__r_n
push eax
call fcn.00404cf0
add esp, 8
jmp 0x41dd3f
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dd48
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
call ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret