Function at 0x449050
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Write file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
lea edi, [esi + 0x10108]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x10128], 0
push edi
jne 0x449336
inc dword [esi + 0x10124]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
test eax, eax
jne 0x449305
mov ecx, dword [esi + 0x10]
cmp ecx, 7
je 0x449301
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ecx, 6
ja case.0x4490b9.2
jmp dword [ecx*4 + 0x4493c0]
push 0
push 0
push 0
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne case.0x4490b9.2
call ebp
mov dword [ebx], eax
jmp case.0x4490b9.2
mov eax, dword [esi + 0x100]
xorps xmm0, xmm0
push esi
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x44]
push 0
push eax
push dword [esi + 8]
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x50], 0x28
mov dword [esi + 0x10], 4
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne case.0x4490b9.2
call ebp
mov dword [ebx], eax
jmp case.0x4490b9.2
mov ecx, dword [esi + 0xec]
lea edi, [esi + 0xf0]
mov dword [esi + 0x10], 5
xorps xmm0, xmm0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
movups xmmword [esp + 0x64], xmm0
cmp eax, ecx
jb 0x4493b9
sub eax, ecx
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x44918c
mov eax, dword [edi]
add eax, ecx
lea ecx, [esp + 0x64]
push edx
push eax
call fcn.00447e10
lea eax, [esp + 0x64]
cmp edi, eax
je 0x4491bd
mov ecx, edi
call fcn.004486f0
movups xmm0, xmmword [esp + 0x64]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x74]
movq qword [edi + 0x10], xmm0
jmp 0x4491f3
mov ecx, dword [esp + 0x78]
cmp ecx, 0xf
jbe 0x4491f3
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4491e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44930e
push ecx
push edx
call fcn.004638cb
add esp, 8
cmp dword [edi + 0x14], 0xf
jbe 0x4491fb
mov edi, dword [edi]
lea eax, [esi + 0xec]
push eax
push dword [esi + 0x100]
push edi
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne case.0x4490b9.2
call ebp
mov dword [ebx], eax
jmp case.0x4490b9.2
push 0
push 8
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne case.0x4490b9.2
call ebp
mov dword [ebx], eax
jmp case.0x4490b9.2
push esi
push 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x28
push eax
push dword [esi + 8]
lea ebp, [esi + 0x108]
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0xffff
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4492a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp eax, 0x3e5
je 0x4492e9
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x449314
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4492c7
push eax
push edi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x4492e3
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4492d0
sub ecx, edx
push ecx
push ebp
lea ecx, [esi + 0x4c]
call fcn.00449eb0
add dword [esi + 0x84], edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx]
test eax, eax
jne 0x449305
mov ecx, dword [esi + 0x10]
cmp ecx, 7
jne 0x4490b0
test eax, eax
je 0x449349
cmp eax, 0x3e5
je 0x449349
jmp 0x449342
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x10], 7
mov byte [esi + 0xe9], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1012c]
mov dword [esi + 0x1012c], eax
jmp 0x449349
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx], 0x3e3
mov byte [esi + 0xe8], 1
lea eax, [esi + 0x10108]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10124]
dec eax
cmp byte [esi + 0x10128], 1
mov dword [esi + 0x10124], eax
jne 0x449399
test eax, eax
jne 0x449399
lea eax, [esi + 0x10108]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00463052
add esp, 0x70
ret
lea eax, [esi + 0x10108]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463052
add esp, 0x70
ret
call fcn.00449ea0
nop
rcl byte [eax - 0x6f16ffbc], 0x44
add bh, ch
xchg edx, eax
inc esp
add bh, ch
xchg edx, eax
inc esp
add byte [ecx - 0x6f], al
inc esp
add byte [ebx], ah
xchg edx, eax
inc esp
add byte [edx - 0x6e], cl
inc esp
add ah, cl
int3