Function at 0x433e40
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eb8b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4643c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14c], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], 2
jae 0x433e9e
cmp dword [ebp + 0x1c], 8
jb 0x433e94
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
mov eax, 0x57
jmp 0x434384
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edi
jb 0x433ea9
mov eax, dword [eax]
lea edx, [ebp - 0x13c]
push edx
push edi
push edi
push 1
xor ecx, ecx
push 1
mov word [eax], cx
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
mov dword [ebp - 0x134], eax
cmp eax, edi
jne 0x434283
push 0x4000
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x138], 0x4000
call fcn.004359f1
mov ecx, dword [ebp - 0x138]
add esp, 4
mov esi, eax
mov dword [ebp - 0x130], esi
cmp ecx, edi
je 0x433f09
mov byte [eax], 0
inc eax
dec ecx
jne 0x433f02
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
push eax
push esi
lea ecx, [ebp - 0x140]
push ecx
push edx
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [ebp - 0x134], eax
cmp eax, edi
jne 0x434127
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4340b2
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x433f53
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00413470
mov byte [ebp - 4], 1
call fcn.00435727
mov ebx, eax
mov dword [ebp - 0x144], ebx
call fcn.004354e6
push edi
lea ecx, [ebp - 0x158]
mov esi, eax
call fcn.00435810
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x433f9b
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x158]
call fcn.00435838
push 0xffffffffffffffff
mov ecx, 2
lea esi, [ebp - 0x48]
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00407490
mov esi, eax
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x148], esp
push edi
lea ecx, [ebp - 0x154]
mov dword [eax], ebx
call fcn.00435810
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x433fe5
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x154]
call fcn.00435838
push esi
lea ecx, [ebp - 0x2c]
call fcn.00414f00
add esp, 8
cmp dword [ebp - 0x34], 8
mov byte [ebp - 0x129], al
jb 0x434014
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043644d
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 1
call fcn.00435810
mov eax, dword [ebx + 4]
cmp eax, edi
jbe 0x434044
cmp eax, 0xffffffff
jae 0x434044
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x150]
and esi, ebx
call fcn.00435838
cmp esi, edi
je 0x434068
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp - 0x129], 0
jne 0x4340de
mov eax, dword [ebp - 0x130]
mov ecx, 0x4000
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x138], ecx
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x434090
mov byte [ebp - 4], cl
cmp dword [ebp - 0x18], 8
jb 0x4340ac
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043644d
add esp, 4
mov esi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
push edx
push esi
lea eax, [ebp - 0x140]
push eax
push ecx
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [ebp - 0x134], eax
cmp eax, edi
je 0x433f33
jmp 0x434127
mov edx, dword [ebp - 0x130]
mov eax, dword [edx + 0x14]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4340f0
sub ecx, esi
mov esi, dword [ebp - 0x14c]
sar ecx, 1
push ecx
call fcn.00413470
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x434121
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043644d
add esp, 4
mov esi, dword [ebp - 0x130]
push esi
call fcn.00436ab8
mov ecx, dword [ebp - 0x13c]
add esp, 4
push ecx
call dword [sym.imp.MPR.dll_WNetCloseEnum]
cmp dword [ebp - 0x134], edi
jne 0x434283
cmp byte [ebp + 0x2c], 0
je 0x43436c
push 0xffffffffffffffff
mov ecx, 2
lea esi, [ebp - 0xb8]
lea edx, [ebp + 8]
mov edi, SysReAllocStringLen
call fcn.00407490
mov esi, eax
mov ebx, dword [ebp - 0x14c]
lea edx, [ebp - 0x9c]
push str.Retrieved_the_remote_path__
push edx
mov byte [ebp - 4], 4
call fcn.00407830
push eax
mov eax, str.__for_mapped_drive_L_
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00407910
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.004190d0
sub esp, 0x1c
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x148], esp
push eax
mov eax, 0x4583fc
call fcn.00407910
sub esp, 0x18
mov ebx, 8
mov byte [ebp - 4], bl
mov eax, str.GetUNCPathOfMappedDrive
mov ecx, esp
mov dword [ebp - 0x144], esp
call fcn.00413560
push 2
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00419f60
add esp, 0x3c
cmp dword [ebp - 0x6c], ebx
jb 0x434207
mov eax, dword [ebp - 0x80]
push eax
call fcn.0043644d
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x50], ebx
jb 0x43422b
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043644d
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x88], ebx
jb 0x43424e
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0043644d
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0xa4], ebx
jb 0x43436c
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0043644d
add esp, 4
jmp 0x43436c
mov edx, dword [ebp - 0x134]
cmp edx, 0x103
je 0x434366
cmp byte [ebp + 0x28], 0
je 0x43436c
lea ecx, [ebp - 0xf0]
mov edi, SysReAllocStringLen
call fcn.00419240
mov ebx, eax
push 0xffffffffffffffff
mov ecx, 2
lea esi, [ebp - 0xd4]
lea edx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.00407490
push eax
mov edx, str.Retrieving_the_remote_path_for_mapped_drive_L_
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 0xa
call fcn.00408410
add esp, 4
push eax
mov eax, str.__failed_with:
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xb
call fcn.00407910
mov ecx, eax
sub esp, 0x18
mov eax, ebx
mov byte [ebp - 4], 0xc
mov ebx, esp
mov dword [ebp - 0x148], esp
call fcn.004190d0
sub esp, 0x1c
mov byte [ebp - 4], 0xd
mov eax, str.GetUNCPathOfMappedDrive
mov ecx, esp
mov dword [ebp - 0x144], esp
call fcn.00413560
push 2
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00419f60
add esp, 0x3c
lea esi, [ebp - 0x128]
call fcn.0041c1b0
lea esi, [ebp - 0x10c]
call fcn.0041c1b0
lea esi, [ebp - 0xd4]
call fcn.0041c1b0
lea esi, [ebp - 0xf0]
call fcn.0041c1b0
jmp 0x43436c
mov dword [ebp - 0x134], edi
cmp dword [ebp + 0x1c], 8
jb 0x43437e
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043644d
add esp, 4
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret