Function at 0x43a989
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x55c], eax
push 7
pop eax
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x528], eax
xor eax, eax
mov word [ebp - 0x53c], ax
lea eax, [ebp - 0x53e]
push eax
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x520]
xor ebx, ebx
push eax
xor edx, edx
push ecx
mov dword [ebp - 0x568], edi
mov byte [ebp - 0x53d], bl
mov byte [ebp - 0x53e], bl
mov dword [ebp - 0x510], ebx
mov word [ebp - 0x520], dx
mov dword [ebp - 0x52c], ebx
call fcn.0043a889
add esp, 0x10
cmp dword [ebp - 0x510], ebx
jne 0x43aa4f
mov byte [ebp - 0x53d], bl
push ebx
push 1
lea ecx, [ebp - 0x53c]
call fcn.00403656
push ebx
push 1
lea ecx, [ebp - 0x520]
call fcn.00403656
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x53d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bf82
leave
ret
mov dword [ebp - 0x544], ebx
cmp esi, ebx
jne 0x43aa5e
mov esi, str.P2PUpdater
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x548], eax
cmp eax, ebx
je 0x43ace1
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x558]
push ecx
push 5
push eax
mov dword [ebp - 0x558], 0x7530
call esi
push 4
lea eax, [ebp - 0x558]
push eax
push 6
push dword [ebp - 0x548]
call esi
cmp dword [ebp - 0x50c], 8
mov ecx, dword [ebp - 0x520]
jae 0x43aabd
lea ecx, [ebp - 0x520]
push ebx
push ebx
push 3
mov eax, 0x48ac6c
push eax
push eax
push 0x50
push ecx
push dword [ebp - 0x548]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x54c], eax
cmp eax, ebx
je 0x43acb3
cmp dword [ebp - 0x528], 8
mov eax, dword [ebp - 0x53c]
jae 0x43aafa
lea eax, [ebp - 0x53c]
push ebx
push 0x84280000
push ebx
push ebx
push ebx
push eax
push 0x479830
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x544], eax
cmp eax, ebx
je 0x43acb3
mov byte [ebp - 0x53e], bl
cmp dword [ebp + 0x14], ebx
jle 0x43ab86
push 0x3ff
lea eax, [ebp - 0x503]
push ebx
push eax
mov byte [ebp - 0x504], bl
call fcn.0044d460
push dword [ebp + 0x14]
lea eax, [ebp - 0x504]
push str.Range:_bytes_d__r_n
push 0x400
push eax
call fcn.0044d33c
add esp, 0x1c
push 0x10000000
push eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x43ab86
mov byte [ebp - 0x53e], 1
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x43acb3
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0044d460
add esp, 0xc
push ebx
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push dword [ebp - 0x544]
mov dword [ebp - 0x560], pe_nt_image_headers32
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x43acb3
lea eax, [ebp - 0x104]
push eax
call fcn.0044d257
sub eax, 0xc8
pop ecx
je 0x43ac1a
sub eax, 6
jne 0x43acb3
cmp byte [ebp - 0x53e], bl
je 0x43ac1a
push ebx
push ebx
push eax
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, 0x10000
push esi
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x550], ebx
call fcn.0044bd14
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x554]
cmp eax, ebx
jbe 0x43ac80
add dword [ebp - 0x550], eax
push ebx
lea ecx, [ebp - 0x564]
push ecx
push eax
push edi
push dword [ebp - 0x568]
mov dword [ebp - 0x564], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x55c], ebx
je 0x43ac80
push dword [ebp + 0x10]
push dword [ebp - 0x550]
push dword [ebp + 0x20]
push dword [ebp - 0x55c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x554]
push eax
push esi
push edi
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_InternetReadFile]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x53d], al
je 0x43acac
cmp dword [ebp - 0x554], ebx
jne 0x43ac34
push edi
call fcn.0044d21d
pop ecx
push dword [ebp - 0x548]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp dword [ebp - 0x54c], ebx
je 0x43acd1
push dword [ebp - 0x54c]
call esi
cmp dword [ebp - 0x544], ebx
je 0x43ace1
push dword [ebp - 0x544]
call esi
mov al, byte [ebp - 0x53d]
mov byte [ebp - 0x53d], al
jmp 0x43aa1e