Function at 0x4ab5d0
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x601ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x70], 0
push 0
push str.UseProxy
push str.Update
mov byte [esp + 0x27], 0
mov bl, 1
call fcn.00401e00
test al, al
je 0x4ab978
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
xor bl, bl
xor ecx, ecx
test bl, bl
setne cl
push 0
push 0
push eax
dec ecx
and ecx, 3
push ecx
push 0x6ca128
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x54], ebp
mov byte [esp + 0x70], 1
test ebp, ebp
je 0x4abc7b
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
test bl, bl
jne 0x4ab68f
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2b
push ebp
call edi
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2c
push ebp
call edi
push 0xa
push 0
push ecx
mov eax, esp
mov dword [esp + 0x5c], esp
mov dword [eax], 0x70f0d4
mov ecx, 0x70f0d4
mov edx, 1
lock xadd dword [ecx], edx
mov byte [esp + 0x7c], 2
push str.ProxyPort
push str.Update
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x88], 1
call fcn.00402040
mov byte [esp + 0x78], 3
mov ecx, eax
call fcn.004ff5f0
mov esi, eax
mov byte [esp + 0x70], 1
mov ecx, dword [esp + 0x38]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ab6fc
mov eax, dword [esp + 0x38]
push eax
call fcn.004ff160
add esp, 4
mov ecx, dword [esp + 0xa4]
test bl, bl
jne 0x4ab709
mov ecx, esi
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
push 0
push 0
push 3
push 0
push 0
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x70], 4
test ebx, ebx
je 0x4abc6b
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
push 0
push 0x8400f200
push 0
push 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov byte [esp + 0x70], 5
test esi, esi
je 0x4abc5b
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestW]
push 0
push 0
push 0
push 0
push esi
call ebx
test eax, eax
je 0x4abc57
lea ecx, [esp + 0x40]
push 0x13
push ecx
mov dword [esp + 0x48], esi
call fcn.004ab4a0
add esp, 8
cmp eax, 0x191
jne 0x4ab7f4
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x1c
push esi
call edi
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x1d
push esi
call edi
push 0
push 0
push 0
push 0
push esi
call ebx
test eax, eax
je 0x4abc57
lea ecx, [esp + 0x40]
push 0x13
push ecx
mov dword [esp + 0x48], esi
call fcn.004ab4a0
add esp, 8
cmp eax, 0xc8
jne 0x4abcb7
lea edx, [esp + 0x40]
push 5
push edx
mov dword [esp + 0x48], esi
call fcn.004ab4a0
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jle 0x4abc53
mov eax, dword [esp + 0x9c]
cmp dword [eax - 0xc], 0
je 0x4ab8a9
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00438490
mov edi, eax
mov byte [esp + 0x78], 6
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x48]
push eax
mov ebx, 0x6d0c50
call fcn.0041e2b0
mov byte [esp + 0x80], 7
lea ecx, [esp + 0x50]
push edi
push ecx
mov ebx, eax
call fcn.004247e0
add esp, 0x18
mov byte [esp + 0x70], 8
lea edi, [esp + 0x9c]
call fcn.0040ddb0
mov byte [esp + 0x70], 7
lea ecx, [esp + 0x40]
call fcn.0040ba40
mov byte [esp + 0x70], 6
lea ecx, [esp + 0x3c]
call fcn.0040ba40
mov byte [esp + 0x70], 5
lea ecx, [esp + 0x38]
call fcn.0040ba40
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x60], edi
mov bl, 9
mov byte [esp + 0x70], bl
cmp edi, 0xffffffff
je 0x4abc21
mov eax, dword [esp + 0x9c]
cmp dword [eax - 0xc], 0
je 0x4aba6c
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c0eb0
add esp, 8
mov byte [esp + 0x70], 0xa
lea eax, [esp + 0x24]
call fcn.00443930
test al, al
jne 0x4ab9ca
cmp dword [0x71038c], 1
jl 0x4ab942
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
push eax
push str.Resume_buffer_found____i
push str.downloadFile
push 1
call fcn.00579a92
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp dword [eax + 4], ebp
jbe 0x4ab97f
cmp dword [0x71038c], 1
jl 0x4ab968
push str.Resume_buffer_too_big
push str.downloadFile
push 1
call fcn.00579a92
add esp, 0xc
mov edx, dword [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ab9ca
xor eax, eax
jmp 0x4ab62a
mov ecx, dword [eax + 4]
push 0
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], ecx
mov eax, dword [eax]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ab9a6
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x4ab9ca
cmp dword [0x71038c], 1
jl 0x4ab9ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Resume_buffer___unable_to_save____i
push str.downloadFile
push 1
call fcn.00579a92
add esp, 0x10
mov byte [esp + 0x70], bl
lea ebx, [esp + 0x24]
call fcn.004c2420
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4aba6c
push eax
push str.Range:_bytes_i__r_n
lea ecx, [esp + 0x3c]
push 0x32
push ecx
call fcn.004c1970
add esp, 0x10
mov byte [esp + 0x70], 0xb
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
push 0xa0000000
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4aba5e
cmp dword [0x71038c], 1
jl 0x4aba49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_set_byte_range____i
push str.downloadFile
push 1
call fcn.00579a92
add esp, 0x10
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x20], 0
mov byte [esp + 0x70], 9
lea ecx, [esp + 0x34]
call fcn.0040ba40
mov edx, dword [esp + 0x9c]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x64], ebp
mov byte [esp + 0x70], 0xc
mov eax, dword [esp + 0x20]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x10000
lea ebx, [esp + 0x40]
mov dword [esp + 0x1c], 0
call fcn.004438c0
mov byte [esp + 0x70], 0xd
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4abbef
mov edi, edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4abbef
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call edi
test eax, eax
je 0x4abbef
cmp ebp, 0xffffffff
je 0x4abb27
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], eax
mov edx, dword [ebx]
push eax
push edx
push ebp
call edi
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x1c]
cmp byte [esp + 0xa0], 0
mov dword [esp + 0x38], eax
je 0x4abbd4
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x28]
lea esi, [eax + ecx]
mov edx, esi
fstp dword [esp + 0x4c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
test edx, edx
jge 0x4abb64
fadd dword [0x6dc580]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fdiv dword [esp + 0x4c]
fmul qword [0x6dc550]
call fcn.005c9610
push eax
push 0x72a514
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x34]
push eax
call fcn.0040b8d0
mov byte [esp + 0x70], 0xe
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
push 2
push ecx
mov ecx, dword [eax]
push edx
push esi
push ecx
push str.Downloading__s_database____i_bytes_from__i_file__i_from__i_
lea edi, [esp + 0x4c]
call fcn.0042a2d0
mov esi, dword [esp + 0x4c]
add esp, 0x18
call fcn.00492300
mov byte [esp + 0x70], 0xd
mov ecx, edi
call fcn.0040ba40
mov esi, dword [esp + 0x50]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4abae0
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x70], 0xc
lea ebx, [esp + 0x40]
call fcn.004c2420
mov byte [esp + 0x70], 9
cmp ebp, 0xffffffff
je 0x4abc19
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, ebp
jne 0x4abc42
mov eax, dword [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x1b], 1
mov byte [esp + 0x70], 5
cmp edi, 0xffffffff
je 0x4abc53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x70], 4
test esi, esi
je 0x4abc6b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x70], 1
test ebx, ebx
je 0x4abc7b
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x70], 0
test ebp, ebp
je 0x4abc8b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x9c]
call fcn.0040ba40
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp eax, 0x194
jne 0x4abc57
mov ecx, dword [esp + 0x98]
mov byte [ecx], 1
jmp 0x4abc57