Function at 0x46eb9d
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x10f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x230], esi
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push edi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005117f0
xor eax, eax
mov dword [ebp - 0x240], ebx
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp esi, ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], ebx
je 0x46ef5f
push esi
call fcn.005120b0
test eax, eax
pop ecx
jbe 0x46ef5f
push esi
call fcn.005120b0
cmp eax, 0xeb
pop ecx
jae 0x46ef5f
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.005123e0
push 0x22
lea edi, [ebp - 0x110]
call fcn.004c4594
add esp, 0xc
mov edx, edi
call fcn.004c470f
mov esi, edi
call fcn.004c47b0
mov eax, edi
push eax
dec esi
call fcn.005120b0
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x46ec89
mov eax, edi
push eax
call fcn.005120b0
pop ecx
mov byte [eax + esi], bl
lea eax, [ebp - 0x218]
push str.paulaDetectLogon.txt
push eax
call fcn.005123e0
pop ecx
pop ecx
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x218]
call fcn.004c40f5
mov esi, 0x6bf130
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x46ecda
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x224], 0x7530
je 0x46ece0
mov dword [ebp - 0x224], ebx
cmp dword [0x5c7800], ebx
je 0x46ecf2
add dword [ebp - 0x224], 0x2710
mov eax, dword [ebp - 0x224]
add eax, 0x1e61
push eax
lea ecx, [ebp - 0x218]
call fcn.0042adc7
test eax, eax
pop ecx
je 0x46ed1d
cmp dword [0x5c7800], ebx
jne 0x46ed1d
xor eax, eax
jmp 0x46ef62
mov esi, dword [ebp - 0x220]
cmp esi, ebx
je 0x46ed34
push esi
call fcn.005120b0
test eax, eax
pop ecx
ja 0x46ed34
mov esi, ebx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
push 0x2b6f
lea eax, [ebp - 0x218]
push str..Network.c
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x240]
push eax
push 0x46ef71
push ebx
mov ecx, str.LogonToServer
mov dword [ebp - 0x23c], esi
call fcn.0042da43
mov dword [ebp - 0x220], eax
call fcn.004f16be
cmp dword [ebp - 0x220], ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], 1
je 0x46ee44
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x46eddd
cmp dword [ebp - 0x21c], 0x103
jne 0x46ee2b
call fcn.004f16be
mov ecx, dword [ebp - 0x224]
sub eax, dword [ebp - 0x22c]
add ecx, 0x2ee0
cmp eax, ecx
ja 0x46edf2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call edi
test eax, eax
jne 0x46edae
jmp 0x46ee2b
call fcn.00464539
test eax, eax
jne 0x46ee21
call fcn.004f16be
sub eax, dword [ebp - 0x22c]
push eax
push dword [ebp - 0x228]
push esi
push dword [ebp - 0x230]
push str.:2:LogonToServer___s_____s_____s___timed_out_after__ldms.
call fcn.00426c01
add esp, 0x14
mov dword [ebp - 0x21c], 1
mov edi, dword [ebp - 0x220]
call fcn.0042dbeb
cmp dword [ebp - 0x21c], ebx
jne 0x46ee44
mov dword [0x5c7800], ebx
call fcn.0048a508
test eax, eax
je 0x46ef22
push 0x1b58
mov ecx, str.T:_tmp
call fcn.0042adc7
test eax, eax
pop ecx
jne 0x46ef22
push 7
pop ecx
mov dword [ebp - 0x260], ebx
lea edi, [ebp - 0x25c]
push 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.005117f0
xor eax, eax
inc eax
add esp, 0xc
push eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x250], 0x5705b0
call fcn.0048a45f
pop ecx
push eax
push str._s_tmp
push ebx
call fcn.004c5467
add esp, 0xc
push str.:0:FYI:LogonToServer___is_mapping_server_drive.
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x244], ebx
call fcn.00426c01
pop ecx
push 0x80
push esi
push dword [ebp - 0x228]
lea eax, [ebp - 0x260]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x46ef22
mov ecx, dword [ebp - 0x24c]
push str._GetLastError_
push dword [ebp - 0x228]
push esi
push dword [ebp - 0x250]
push ecx
push ecx
call fcn.00471469
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
call fcn.00471469
push eax
push str.:5:LogonToServer___could_not_map_the_server_drive__CurUser:_s__s_:_WNetAddConnection2A___s_____s_____s_____s___FAILED:__s
call fcn.004265da
add esp, 0x20
cmp dword [ebp - 0x224], ebx
jbe 0x46ef44
xor eax, eax
cmp dword [ebp - 0x21c], ebx
je 0x46ef62
cmp dword [ebp - 0x21c], 2
setne al
lea eax, [eax + eax - 1]
jmp 0x46ef62
push 0x157c
lea ecx, [ebp - 0x218]
call fcn.0042adc7
test eax, eax
pop ecx
jne 0x46ed16
jmp 0x46ef34
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret