Function at 0x438330
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 0x451151
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x1e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463630]
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.00438130
add esp, 0xc
cmp dword [esp + 0x7c], ebx
jne 0x438449
mov ecx, dword [esp + 0x18]
mov esi, 8
mov dword [ecx], 0x3ec
cmp dword [esp + 0x64], esi
jb 0x438419
mov edx, dword [esp + 0x50]
push edx
call fcn.0043a14d
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 0x438442
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0043a14d
add esp, 4
xor al, al
jmp 0x43875f
cmp edi, ebx
jne 0x438452
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 0x438478
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov dword [edx], 0x3ed
jmp 0x4386f3
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 0x4384cb
mov edx, dword [esp + 0x18]
mov dword [edx], 0x3f1
jmp 0x4386fe
push 0xff
lea eax, [esp + 0xfd]
push ebx
push eax
mov byte [esp + 0x104], bl
call fcn.0043ab70
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], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x43851a
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f2
jmp 0x4386f3
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 0x438545
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.0043bd5b
add esp, 4
sub eax, 0xc8
je 0x43858d
sub eax, 6
je 0x43858d
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f2
jmp 0x4386f3
push 0x10000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0043a142
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.00430380
mov ecx, eax
call fcn.0042ec70
test al, al
je 0x438787
cmp dword [esp + 0xb8], ebx
jne 0x4387a2
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x4386a6
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 0x4387bd
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4386a6
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 0x4387d8
mov byte [esp + 0x204], 1
call fcn.0042e110
cmp dword [esp + 0x20], ebx
jne 0x4385a4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov byte [esp + 0x17], 1
cmp esi, ebx
je 0x4386fe
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x43870d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp ebp, ebx
je 0x43871a
push ebp
call fcn.0043b2b5
add esp, 4
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x438732
mov eax, dword [esp + 0x50]
push eax
call fcn.0043a14d
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 0x43875b
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043a14d
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.0043a5be
add esp, 0x1f4
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x84]
mov dword [eax], 0x3f6
call fcn.0042e110
jmp 0x4386f3
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0x3f8
lea ecx, [esp + 0x84]
call fcn.0042e110
jmp 0x4386f3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x84]
mov dword [edx], 0x3f4
call fcn.0042e110
jmp 0x4386f3
mov eax, dword [esp + 0x18]
mov dword [eax], 0x3f3
call fcn.0042e110
jmp 0x4386f3