Function at 0x45d650
Capabilities:
Check for time delay via gettickcount
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
mov ebp, 0x84000000
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x45d66e
cmp eax, 9
jne 0x45d673
add esi, 2
jmp 0x45d661
cmp word [esi], 0x2a
jne 0x45d6c5
add esi, 2
mov eax, esi
call fcn.00403f40
test al, al
je 0x45d696
push 0x10
push 0
push esi
call fcn.00499170
add esp, 0xc
jmp 0x45d69f
push esi
call fcn.004991e8
add esp, 4
mov ebp, eax
mov ebx, 0x4b3a64
mov eax, esi
call fcn.0040541e
test eax, eax
je 0x45d6c5
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x45d6c0
cmp eax, 9
jne 0x45d6c5
add esi, 2
jmp 0x45d6b3
push 0
push 0
push 0
push 4
push 0x4afa94
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x45d738
mov eax, dword [0x4d4b04]
test byte [eax + 0x100], 1
jne 0x45d713
mov ecx, dword [0x4d8ea8]
push 1
push edi
push 0xffffffffffffffff
push 0x4b356c
push ecx
call fcn.004824a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8
mov edi, dword [esp + 0x468]
push 0x4af9bc
push 0
push 0x4b356c
call fcn.004399f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8
push 0
push ebp
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x45d785
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x4d4b04]
test byte [edx + 0x100], 1
jne 0x45d713
mov eax, dword [0x4d8ea8]
push 1
push ebx
push 0xffffffffffffffff
push 0x4b356c
push eax
call fcn.004824a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8
mov ecx, dword [esp + 0x46c]
push 0x4bc780
push ecx
call fcn.0049bcaf
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x45d7c5
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov edi, dword [esp + 0x468]
call fcn.0043bbb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x400
movzx eax, word [esi]
cmp eax, 0x68
je 0x45d8bb
cmp eax, 0x48
je 0x45d8bb
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x14]
push eax
push 0x400
mov ecx, edx
push ecx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x45d94f
cmp dword [esp + 0x14], 0
je 0x45d94f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4da1dc]
mov edx, dword [0x4d4b04]
cmp eax, dword [edx + 0xd8]
jbe 0x45d889
push 0
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x45d882
push 1
push 0xffffffffffffffff
call fcn.00401460
add esp, 8
call esi
mov dword [0x4da1dc], eax
mov ecx, dword [esp + 0x14]
push ebp
push 1
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0049be1d
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x68]
push ecx
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x45d838
jmp 0x45d94f
mov edi, dword [sym.imp.WININET.dll_InternetReadFileExA]
push 0
push 8
lea edx, [esp + 0x24]
push edx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x45d94f
cmp dword [esp + 0x34], 0
je 0x45d94f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4da1dc]
mov ecx, dword [0x4d4b04]
cmp eax, dword [ecx + 0xd8]
jbe 0x45d920
push 0
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x45d919
push 1
push 0xffffffffffffffff
call fcn.00401460
add esp, 8
call esi
mov dword [0x4da1dc], eax
mov eax, dword [esp + 0x34]
push ebp
push 1
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0049be1d
add esp, 0x10
push 0
push 8
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x44], 0x400
call edi
mov esi, eax
test esi, esi
jne 0x45d8d3
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
mov eax, dword [esp + 0x18]
push eax
call ebx
push ebp
call fcn.0049bf04
add esp, 4
test esi, esi
jne 0x45d97c
mov ecx, dword [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
mov edi, dword [esp + 0x468]
sete dl
movzx eax, dl
push eax
call fcn.00439a90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 8