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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101b5240
push 0x101263e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0xca80
call fcn.10123010
mov eax, dword [0x101c1b88]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x50], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xc854], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0xc850], 0
push 0xc7ff
push 0
lea eax, [ebp - 0xc84f]
push eax
call fcn.1011e8d0
add esp, 0xc
mov dword [ebp - 0xc978], 0
mov byte [ebp - 0xc970], 0
push 0x103
push 0
lea ecx, [ebp - 0xc96f]
push ecx
call fcn.1011e8d0
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc974], 0
mov dword [ebp - 0xc85c], 0
mov dword [ebp - 0xc868], 0
mov dword [ebp - 0xc864], 0
mov dword [ebp - 0xc858], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 8], 0
je 0x10148df6
cmp dword [ebp + 0xc], 0
jne 0x10148dfd
xor eax, eax
jmp 0x10149651
mov edx, dword [ebp + 8]
push edx
call fcn.1011e3a0
add esp, 4
cmp eax, 0x400
jbe 0x10148e5f
mov eax, dword [ebp + 8]
push eax
push 0x101c4d88
push 0x122
push 0x101c4da4
push 0x101c4db4
push 1
call fcn.1014edc0
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
push 0x101c4dcc
push 0x122
push 0x101c4de8
push 0x101c4df8
push 1
call fcn.1014f750
add esp, 0x18
xor edx, edx
jne 0x10148e10
xor eax, eax
jmp 0x10149651
wait
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc858]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xc864]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10148100
add esp, 0x10
test eax, eax
jne 0x10148ee8
mov ecx, dword [ebp + 8]
push ecx
push 0x101c4e10
push 0x12a
push 0x101c4e20
push 0x101c4e30
push 1
call fcn.1014edc0
add esp, 0x18
mov edx, dword [ebp + 8]
push edx
push 0x101c4e48
push 0x12a
push 0x101c4e58
push 0x101c4e68
push 1
call fcn.1014f750
add esp, 0x18
xor eax, eax
jne 0x10148e89
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
mov dword [ebp - 0x3c], 4
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x20000005
mov eax, dword [ebp - 0xc858]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10148f1a
cmp dword [ebp - 0x30], 0
jne 0x10148f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x101c4e80
push 0x13a
push 0x101c4e9c
push 0x101c4eac
push 1
call fcn.1014edc0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x101c4ec4
push 0x13a
push 0x101c4ee0
push 0x101c4ef0
push 1
call fcn.1014f750
add esp, 0x1c
xor eax, eax
jne 0x10148f1a
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0x4000000b
mov eax, dword [ebp - 0xc858]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10148fb5
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x10149004
mov eax, dword [ebp + 8]
push eax
push 0x101c4f08
push 0x14a
push 0x101c4f28
push 0x101c4f38
push 1
call fcn.1014edc0
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
push 0x101c4f50
push 0x14a
push 0x101c4f70
push 0x101c4f80
push 1
call fcn.1014f750
add esp, 0x18
xor edx, edx
jne 0x10148fb5
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1014bcf0
add esp, 4
mov dword [ebp - 0xc974], eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10146c60
add esp, 8
test eax, eax
je 0x1014904c
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xc974]
jne 0x1014904c
mov dword [ebp - 0xc854], 1
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
mov ecx, dword [ebp + 0xc]
push ecx
push 0x101c4f98
push 0x104
lea edx, [ebp - 0xc970]
push edx
call fcn.1011a6b9
add esp, 0x10
lea eax, [ebp - 0xc970]
push eax
call fcn.1014c440
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0xc970]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc868], eax
cmp dword [ebp - 0xc868], 0xffffffff
jne 0x1014910b
lea edx, [ebp - 0xc970]
push edx
push 0x101c4fa0
push 0x167
push 0x101c4fb8
push 0x101c4fc8
push 1
call fcn.1014edc0
add esp, 0x18
lea eax, [ebp - 0xc970]
push eax
push 0x101c4fe0
push 0x167
push 0x101c4ff8
push 0x101c5008
push 1
call fcn.1014f750
add esp, 0x18
xor ecx, ecx
jne 0x101490a6
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
mov dword [ebp - 0xc854], 1
push 0xc800
push 0
lea edx, [ebp - 0xc850]
push edx
call fcn.1011e8d0
add esp, 0xc
mov dword [ebp - 0xc860], 0
lea eax, [ebp - 0xc860]
push eax
push 0xc800
lea ecx, [ebp - 0xc850]
push ecx
mov edx, dword [ebp - 0xc858]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10149168
mov dword [ebp - 0xc854], 0
jmp 0x10149240
cmp dword [ebp - 0xc860], 0
jne 0x10149176
jmp 0x10149240
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc860]
push ecx
lea edx, [ebp - 0xc850]
push edx
mov eax, dword [ebp - 0xc868]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101491b1
mov dword [ebp - 0xc854], 0
jmp 0x10149240
mov ecx, dword [ebp - 0xc85c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc85c], ecx
cmp dword [ebp + 0x10], 0
je 0x10149233
mov edx, dword [ebp - 0xc85c]
cmp edx, dword [ebp - 0x30]
ja 0x101491df
mov eax, dword [ebp - 0xc85c]
mov dword [ebp - 0xca88], eax
jmp 0x101491e8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xca88], ecx
mov edx, dword [ebp - 0xca88]
mov dword [ebp - 0xca90], edx
mov dword [ebp - 0xca8c], 0
fild qword [ebp - 0xca90]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xca98], eax
mov dword [ebp - 0xca94], 0
fild qword [ebp - 0xca98]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [ebp + 0x10]
add esp, 0x14
mov edx, 1
test edx, edx
jne 0x1014912b
mov eax, dword [ebp - 0xc868]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x38], 0
je 0x101492cb
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0xc85c]
je 0x101492cb
mov edx, dword [ebp - 0xc85c]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0x101c5020
push 0x19c
push 0x101c504c
push 0x101c505c
push 2
call fcn.1014edc0
add esp, 0x1c
mov ecx, dword [ebp - 0xc85c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0x101c5074
push 0x19c
push 0x101c50a0
push 0x101c50b0
push 2
call fcn.1014f750
add esp, 0x1c
xor eax, eax
jne 0x1014925e
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
cmp dword [ebp - 0x34], 0
je 0x101492db
cmp dword [ebp - 0x38], 0
jne 0x101494da
mov dword [ebp - 0xca84], 0
mov byte [ebp - 0xca80], 0
push 0x103
push 0
lea ecx, [ebp - 0xca7f]
push ecx
call fcn.1011e8d0
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0xca80]
push edx
call fcn.1011e8d0
add esp, 0xc
push 0
lea eax, [ebp - 0xca84]
push eax
push 0
push 0x13
mov ecx, dword [ebp - 0xc858]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea edx, [ebp - 0xca84]
push edx
lea eax, [ebp - 0xca80]
push eax
push 0x13
mov ecx, dword [ebp - 0xc858]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x101493d2
push 0x101c50c8
lea edx, [ebp - 0xca80]
push edx
call fcn.1011a86d
add esp, 8
test eax, eax
je 0x101493d2
lea eax, [ebp - 0xca80]
push eax
push 0x101c50cc
push 0x1ae
push 0x101c50e4
push 0x101c50f4
push 1
call fcn.1014edc0
add esp, 0x18
lea ecx, [ebp - 0xca80]
push ecx
push str.http_is_fail._err_s
push 0x1ae
push 0x101c5124
push 0x101c5134
push 1
call fcn.1014f750
add esp, 0x18
xor edx, edx
jne 0x1014936d
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
cmp dword [ebp - 0xc85c], 0x578
jae 0x101494c6
push str.404_Not_Found
push 0xffffffffffffffff
lea eax, [ebp - 0xc850]
push eax
call fcn.1014e560
add esp, 0xc
test eax, eax
je 0x10149455
push 0x101c515c
push 0x1b8
push 0x101c5174
push 0x101c5184
push 1
call fcn.1014edc0
add esp, 0x14
push str.find_404_Not_Found
push 0x1b8
push 0x101c51b4
push 0x101c51c4
push 1
call fcn.1014f750
add esp, 0x14
xor ecx, ecx
jne 0x101493fc
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
push 0x101c51dc
push 0xffffffffffffffff
lea edx, [ebp - 0xc850]
push edx
call fcn.1014e560
add esp, 0xc
test eax, eax
je 0x101494c6
push 0x101c51f8
push 0x1be
push 0x101c5220
push 0x101c5230
push 1
call fcn.1014edc0
add esp, 0x14
push 0x101c5248
push 0x1be
push 0x101c5270
push 0x101c5280
push 1
call fcn.1014f750
add esp, 0x14
xor eax, eax
jne 0x1014946f
mov dword [ebp - 0xc854], 0
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
mov dword [ebp - 0xc854], 1
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
cmp dword [ebp - 0x34], 0
je 0x101494f5
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xc868]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10149559
cmp dword [ebp - 0xc868], 0
je 0x1014956f
mov ecx, dword [ebp - 0xc868]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc858], 0
je 0x10149585
mov edx, dword [ebp - 0xc858]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x10149595
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0xc864], 0
je 0x101495ab
mov ecx, dword [ebp - 0xc864]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edx, [ebp - 0xc970]
push edx
call fcn.1014bd70
add esp, 4
test eax, eax
je 0x1014964b
cmp dword [ebp - 0xc854], 0
je 0x1014963c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc970]
push ecx
call fcn.1014c9a0
add esp, 8
test eax, eax
jne 0x1014963c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc970]
push eax
push 0x101c5310
push 0x1e6
push 0x101c532c
push 0x101c533c
push 1
call fcn.1014edc0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc970]
push edx
push 0x101c5354
push 0x1e6
push str.HttpDownloadEx
push 0x101c5380
push 1
call fcn.1014f750
add esp, 0x1c
xor eax, eax
jne 0x101495e2
xor eax, eax
jmp 0x10149651
lea ecx, [ebp - 0xc970]
push ecx
call fcn.1014c2e0
add esp, 4
mov eax, dword [ebp - 0xc854]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.1011a380
mov esp, ebp
pop ebp
ret