Function at 0x4024c0
Capabilities:
Create directory
Delete file
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x8208
call fcn.004031c0
mov eax, dword [0x406040]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push ebp
push edi
push 0
push 1
mov dword [esp + 0x8218], eax
mov eax, dword [esi + 4]
push 0x8003
push eax
call ebx
mov byte [esp + 0x128], 0
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
stosw word es:[edi], ax
push ecx
push 0x3e8
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402524
mov edx, dword [str.ACDTemp_]
mov eax, dword [0x404c4c]
mov cl, byte [0x404c50]
mov dword [edi], edx
push 0
lea edx, [esp + 0x12c]
mov dword [edi + 4], eax
push edx
mov byte [edi + 8], cl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x24]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x4027e6
jmp 0x402570
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 4]
push ecx
lea eax, [edi + 1]
push eax
push 0x8001
push edx
mov dword [esp + 0x1c], eax
call ebx
test edi, edi
jl 0x4027e1
cmp edi, dword [esi + 0x74]
jge 0x4027e1
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + edi*4]
mov edx, dword [esi + 4]
lea ebp, [edi*4]
push ecx
push 0
push 0x8002
push edx
call ebx
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4025d8
test eax, eax
je 0x402774
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x404c44
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4027c9
cmp edi, dword [esi + 0x24]
jge 0x4027e1
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x20]
add ecx, ebp
push edx
mov edi, str.http:__
call fcn.00402a30
mov eax, dword [eax]
add esp, 4
push 0
push 0x84000000
push 0
push 0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
lea ecx, [esp + 0x20]
mov edi, eax
call dword [0x4040e4]
test edi, edi
je 0x40271c
mov dword [esp + 0x14], 0
mov edi, edi
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40268a
test eax, eax
je 0x40278b
lea edx, [esp + 0x18]
push edx
push 0x7d00
lea eax, [esp + 0x518]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40271c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40271c
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x4027e1
mov edx, dword [esi + 0x70]
mov eax, dword [edx + ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
push eax
push ecx
push 0x8002
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x51c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4027bb
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
jne 0x4027bb
test eax, eax
jne 0x402670
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x4c]
lea ecx, [esi + 0x44]
lea eax, [esp + 0x24]
push eax
push edx
call sub.MFC71.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x38]
jge 0x4027e1
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x58]
add edx, ebp
push edx
push eax
call sub.MFC71.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x10], eax
jge 0x4027e6
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
mov edi, eax
jmp 0x402570
push 0x404e34
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 2
call sub.MSVCR71.dll__CxxThrowException
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x404e34
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 2
call sub.MSVCR71.dll__CxxThrowException
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x8204]
call fcn.0040322e
add esp, 0x8208
ret
jmp sub.MFC71.DLL_AfxThrowInvalidArgException
mov ecx, dword [esp + 0x8210]
pop edi
pop ebp
mov eax, 1
pop ebx
call fcn.0040322e
add esp, 0x8208
ret