Function at 0x579e2c
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x579e34
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57a613
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404fcc
mov eax, dword [ebp - 0xc]
call fcn.00405204
test eax, eax
jle 0x57a5ed
mov eax, dword [0x59c730]
cmp dword [eax], 2
jne 0x57a23b
mov eax, dword [ebp - 0xc]
call fcn.00405204
inc eax
add eax, eax
call fcn.00402df4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x579f0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405204
inc eax
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00408684
mov eax, dword [ebp - 0xc]
call fcn.00405204
inc eax
mov ecx, eax
add ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00406148
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [0x59bf40]
test eax, eax
jne 0x579eef
cmp dword [ebp - 0x1c], 0
ja 0x579ef3
xor eax, eax
jmp 0x579ef5
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579f15
mov eax, dword [ebp - 0x14]
call fcn.00402e24
ret
mov eax, 0x13ec
call fcn.00402df4
mov dword [ebp - 0x30], eax
xor edx, edx
push ebp
push 0x57a5e6
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x13ec
mov eax, dword [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0xc]
call fcn.00405404
push eax
call dword [0x59bf44]
test eax, eax
jne 0x57a283
cmp word [ebp - 0x28], 0
ja 0x57a287
xor eax, eax
jmp 0x57a289
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x57a29c
call fcn.00404950
jmp 0x57a5ed
mov ax, word [ebp - 0x28]
dec eax
test ax, ax
jb 0x57a5d0
inc eax
mov word [ebp - 0x3a], ax
mov word [ebp - 0x26], 0
mov eax, 0x128
call fcn.00402df4
mov dword [ebp - 0x24], eax
mov edx, 0x128
mov eax, dword [ebp - 0x24]
call fcn.00408684
movzx eax, word [ebp - 0x26]
mov ebx, eax
shl ebx, 2
lea ebx, [ebx + ebx*4]
add ebx, dword [ebp - 0x30]
movzx eax, word [ebx + 0xe]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x100], eax
mov eax, dword [ebp - 0x24]
mov edx, ebx
mov ecx, 0xd
call fcn.00403b90
mov eax, dword [0x59c49c]
cmp byte [eax], 0
je 0x57a39f
lea eax, [ebp - 0x5a]
mov edx, 0x20
call fcn.00408684
xor eax, eax
mov dword [ebp - 0x56], eax
push 0x57a62c
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0xa4]
call fcn.0040ce40
push dword [ebp - 0xa4]
push 0x57a638
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x24]
call fcn.004051a8
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.004052c4
mov eax, dword [ebp - 0xa0]
call fcn.00405404
mov dword [ebp - 0x46], eax
push 0
mov eax, dword [0x59c200]
mov eax, dword [eax]
call fcn.00405404
push eax
mov eax, dword [0x59c3a8]
mov eax, dword [eax]
call fcn.00405404
push eax
lea eax, [ebp - 0x5a]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete byte [ebp - 0x31]
jmp 0x57a3a3
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x57a5ad
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [0x59c52c]
cmp byte [edx], 0
je 0x57a45f
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x100]
test eax, eax
je 0x57a3d8
cmp eax, 0x80000000
jne 0x57a45f
push 0
push 0x4000000
push 2
push 0
push 0
push 0x40000000
push 0x57a62c
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0xb0]
call fcn.0040ce40
push dword [ebp - 0xb0]
push 0x57a638
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x24]
call fcn.004051a8
push dword [ebp - 0xb4]
push 0x57a644
lea eax, [ebp - 0xac]
mov edx, 5
call fcn.004052c4
mov eax, dword [ebp - 0xac]
call fcn.00405404
push eax
call sub.kernel32.dll_CreateFileA_1
cmp eax, 0xffffffff
setne dl
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x104], dl
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x57a62c
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0xbc]
call fcn.0040ce40
push dword [ebp - 0xbc]
push 0x57a638
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x24]
call fcn.004051a8
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.004052c4
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 4]
call fcn.0057bb34
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x10c], al
mov eax, dword [ebp - 0x24]
add eax, 0x120
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x118
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x110
push eax
push 0x57a62c
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0xc8]
call fcn.0040ce40
push dword [ebp - 0xc8]
push 0x57a638
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x24]
call fcn.004051a8
push dword [ebp - 0xcc]
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.004052c4
mov eax, dword [ebp - 0xc4]
call fcn.00405404
push eax
mov eax, dword [0x59c318]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a5b4
cmp byte [ebp - 0x31], 0
je 0x57a5ac
push 0xffffffffffffffff
push 0
push 0x57a62c
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0xd4]
call fcn.0040ce40
push dword [ebp - 0xd4]
push 0x57a638
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0x24]
call fcn.004051a8
push dword [ebp - 0xd8]
lea eax, [ebp - 0xd0]
mov edx, 4
call fcn.004052c4
mov eax, dword [ebp - 0xd0]
call fcn.00405404
push eax
call sub.mpr.dll_WNetCancelConnection2A
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a5ed
mov eax, dword [ebp - 0x30]
call fcn.00402e24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a61a
lea eax, [ebp - 0xd8]
mov edx, 0x1f
call fcn.00404f58
lea eax, [ebp - 0xc]
call fcn.00404f34
ret