Function at 0x43f338
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x43f341
add esp, 0xfffffff8
mov eax, dword [ebp - 4]
xor eax, eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
cmp edx, 4
jne 0x43f36b
mov eax, 1
jmp 0x43f5cb
test edi, 2
je 0x43f378
mov eax, 1
test edi, 4
je 0x43f385
mov eax, 2
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0
push eax
push 2
call sub.MPR.dll_WNetOpenEnumA
cmp eax, 5
jne 0x43f3a6
mov eax, 1
jmp 0x43f5cb
test eax, eax
je 0x43f3b1
xor eax, eax
jmp 0x43f5cb
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0x2000
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x200c]
push ecx
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x43f5bd
cmp eax, 0x103
je 0x43f5bd
xor esi, esi
mov eax, esi
shl eax, 5
test edi, 0x40
mov eax, dword [ebp + eax - 0x1ff8]
mov ebx, eax
je 0x43f41b
mov edx, esi
mov ebx, eax
shl edx, 5
movsx edx, byte [ebx]
cmp edx, 0x5c
jne 0x43f412
inc ebx
movsx ecx, byte [ebx]
cmp ecx, 0x5c
jne 0x43f41b
inc ebx
test edi, 0x8000
je 0x43f461
mov ebx, eax
mov edx, esi
shl edx, 5
movsx eax, byte [ebx]
cmp eax, 0x5c
jne 0x43f433
inc ebx
movsx edx, byte [ebx]
cmp edx, 0x5c
jne 0x43f43c
inc ebx
movsx ecx, byte [ebx]
cmp ecx, 0x5c
jne 0x43f447
inc ebx
jmp 0x43f461
mov al, byte [ebx]
test al, al
jne 0x43f45e
mov edx, esi
shl edx, 5
mov ebx, dword [ebp + edx - 0x1ff8]
add ebx, 2
jmp 0x43f461
inc ebx
jmp 0x43f43c
mov eax, esi
shl eax, 5
mov eax, dword [ebp + eax - 0x2004]
cmp eax, 1
jne 0x43f47e
test edi, 8
je 0x43f571
mov edx, esi
shl edx, 5
cmp eax, 2
jne 0x43f494
test edi, 1
je 0x43f571
mov ecx, esi
shl ecx, 5
cmp eax, 3
jne 0x43f4b2
test edi, 2
jne 0x43f4b2
test edi, 4
je 0x43f571
push 0x5d1a58
push ebx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x43f4c7
mov byte [ebx], 0
push 0x5d1a71
push ebx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x43f4dc
mov byte [ebx], 0
push 0x5d1a84
push ebx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x43f4f1
mov byte [ebx], 0
test ebx, ebx
je 0x43f571
mov al, byte [ebx]
test al, al
je 0x43f571
test edi, 0x2000
je 0x43f518
push ebx
push 0
push 0x180
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.dll_SendDlgItemMessageA
test edi, 0x1000
je 0x43f547
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
je 0x43f53a
push 0x5d1aa1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004cdf10
add esp, 8
push ebx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004cdf10
add esp, 8
mov eax, dword [0x5f8384]
test eax, eax
je 0x43f55f
push ebx
push 0x5d1aa3
push eax
call fcn.004d18dc
add esp, 0xc
inc dword [ebp + 0x20]
mov edx, dword [ebp + 0x20]
cmp edx, 0x100
jg 0x43f3b1
mov ecx, esi
shl ecx, 5
test byte [ebp + ecx - 0x2000], 2
je 0x43f5ac
mov eax, dword [ebp + 0x20]
push eax
push edi
mov edx, dword [ebp + 0x18]
inc edx
push edx
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x200c]
shl ecx, 5
mov edx, dword [ebp + 0xc]
push edx
add ecx, eax
push ecx
call fcn.0043f338
add esp, 0x1c
inc esi
mov edx, dword [ebp - 8]
cmp esi, edx
jne 0x43f3ec
jmp 0x43f3b1
mov ecx, dword [ebp - 4]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret