Function at 0x438450
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x451401
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x464630]
xor eax, esp
mov dword [esp + 0x1e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464630]
xor eax, esp
push eax
lea eax, [esp + 0x1fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x218]
mov esi, dword [esp + 0x210]
mov edi, dword [esp + 0x214]
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], edx
mov ecx, 7
xor edx, edx
mov dword [esp + 0x34], eax
mov byte [esp + 0x17], bl
mov byte [esp + 0x1f], bl
xor ebp, ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
lea edx, [esp + 0x4c]
mov dword [eax], ebx
push edx
lea eax, [esp + 0x6c]
push eax
push esi
lea ecx, [esp + 0x2b]
mov byte [esp + 0x210], 1
call fcn.00438250
add esp, 0xc
cmp dword [esp + 0x7c], ebx
jne 0x438569
mov ecx, dword [esp + 0x18]
mov esi, 8
mov dword [ecx], 0x3ec
cmp dword [esp + 0x64], esi
jb 0x438539
mov edx, dword [esp + 0x50]
push edx
call fcn.0043a3dd
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], ax
cmp dword [esp + 0x80], esi
jb 0x438562
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0043a3dd
add esp, 4
xor al, al
jmp 0x43887f
cmp edi, ebx
jne 0x438572
mov edi, str.P2PUpdater
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x438598
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov dword [edx], 0x3ed
jmp 0x438813
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x3c]
push ecx
push 5
push eax
mov dword [esp + 0x48], 0x7530
call edi
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x3c]
push edx
push 6
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ebx
push 0x84000000
push ebx
push ebx
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
jne 0x4385eb
mov edx, dword [esp + 0x18]
mov dword [edx], 0x3f1
jmp 0x43881e
push 0xff
lea eax, [esp + 0xfd]
push ebx
push eax
mov byte [esp + 0x104], bl
call fcn.0043ae00
add esp, 0xc
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x100]
push edx
push 0x13
push esi
mov dword [esp + 0x54], pe_nt_image_headers32
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x43863a
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f2
jmp 0x438813
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x20000005
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x438665
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20c]
mov ecx, dword [esp + 0x30]
push eax
push edi
push 0x2400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0xf8]
push edx
call fcn.0043bfeb
add esp, 4
sub eax, 0xc8
je 0x4386ad
sub eax, 6
je 0x4386ad
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f2
jmp 0x438813
push 0x10000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0043a3d2
add esp, 4
mov ebp, eax
mov eax, 7
mov dword [esp + 0xd4], eax
mov dword [esp + 0xf0], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], cx
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], dx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
lea eax, [esp + 0x84]
push eax
push edi
mov byte [esp + 0x20c], 2
call fcn.004303f0
mov ecx, eax
call fcn.0042f130
test al, al
je 0x4388a7
cmp dword [esp + 0xb8], ebx
jne 0x4388c2
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x4387c6
mov edx, dword [esp + 0x3c]
add dword [esp + 0x24], eax
push ebx
lea ecx, [esp + 0x48]
push ecx
push eax
push ebp
push edx
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4388dd
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4387c6
mov ecx, dword [esp + 0x20]
push ecx
push edi
push 0x2502
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x20]
push edx
push 0x10000
push ebp
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
sete al
lea ecx, [esp + 0x84]
cmp al, bl
je 0x4388f8
mov byte [esp + 0x204], 1
call fcn.0042e660
cmp dword [esp + 0x20], ebx
jne 0x4386c4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov byte [esp + 0x17], 1
cmp esi, ebx
je 0x43881e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x43882d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp ebp, ebx
je 0x43883a
push ebp
call fcn.0043b545
add esp, 4
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x438852
mov eax, dword [esp + 0x50]
push eax
call fcn.0043a3dd
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x43887b
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043a3dd
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.0043a84e
add esp, 0x1f4
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x84]
mov dword [eax], 0x3f6
call fcn.0042e660
jmp 0x438813
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0x3f8
lea ecx, [esp + 0x84]
call fcn.0042e660
jmp 0x438813
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x84]
mov dword [edx], 0x3f4
call fcn.0042e660
jmp 0x438813
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f3
call fcn.0042e660
jmp 0x438813