Function at 0x44d286
Capabilities:
Check http status code
Get common file path
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5866
mov eax, dword fs:[0]
push eax
mov eax, 0x215c
call fcn.00462270
mov eax, dword [0x4ec06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20e4], edx
mov esi, ecx
mov dword [ebp - 0x20f0], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20e8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2120], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2118], eax
test esi, esi
je 0x44d998
cmp word [esi], bx
je 0x44d998
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x2168]
push ebx
push eax
call fcn.00464590
push 0x200
lea eax, [ebp - 0xc7c]
mov dword [ebp - 0x2168], edi
push ebx
push eax
call fcn.00464590
lea eax, [ebp - 0xc7c]
mov dword [ebp - 0x2154], 0xff
push 0x1000
mov dword [ebp - 0x2158], eax
lea eax, [ebp - 0x1c7c]
push ebx
push eax
call fcn.00464590
add esp, 0x24
mov dword [ebp - 0x2138], 0x7ff
lea eax, [ebp - 0x1c7c]
mov dword [ebp - 0x213c], eax
lea eax, [ebp - 0x2168]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x44d994
cmp dword [ebp - 0x215c], 1
je 0x44d395
cmp dword [ebp - 0x215c], 2
jne 0x44d994
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_45.0.2454.101_Safari_537.36
mov dword [ebp - 0x212c], 0x4d3854
mov dword [ebp - 0x2128], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x2108], edi
test edi, edi
je 0x44d994
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp + 0x14], ebx
je 0x44d3f0
push 4
lea eax, [ebp + 0x14]
push eax
push 3
push edi
call esi
push 4
lea eax, [ebp + 0x14]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp + 0x14]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x210c]
mov dword [ebp - 0x210c], 2
push eax
push 0x58
push edi
call esi
push ebx
push dword [ebp - 0x2150]
push dword [ebp - 0x2158]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x2124], edx
test edx, edx
je 0x44d98d
cmp dword [ebp - 0x215c], 2
mov ecx, ebx
mov eax, 0x800000
cmove ecx, eax
cmp dword [ebp - 0x20e8], ebx
je 0x44d44f
mov eax, str.POST
cmp dword [ebp + 0xc], ebx
jne 0x44d454
mov eax, 0x4d3888
or ecx, 0x100
push ecx
lea ecx, [ebp - 0x212c]
push ecx
push dword [ebp - 0x20e4]
push str.HTTP_1.1
push dword [ebp - 0x213c]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x211c], esi
test esi, esi
je 0x44d981
xor eax, eax
lea edi, [ebp - 0x2100]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2100]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x44d5d7
xor eax, eax
lea edi, [ebp - 0x1ca4]
push 6
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1c88]
xor edx, edx
stosd dword es:[edi], eax
inc edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20fc]
test eax, eax
je 0x44d4df
mov ecx, edx
mov dword [ebp - 0x1c9c], eax
mov dword [ebp - 0x2100], ecx
jmp 0x44d4eb
mov ecx, dword [ebp - 0x2100]
mov eax, dword [ebp - 0x1c9c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x44d573
test eax, eax
je 0x44d505
mov dword [ebp - 0x1ca4], 2
jmp 0x44d515
mov dword [ebp - 0x1ca4], edx
mov dword [ebp - 0x1ca0], 3
lea eax, [ebp - 0x1c88]
mov dword [ebp - 0x1c90], edx
push eax
lea eax, [ebp - 0x1ca4]
push eax
push dword [ebp - 0x20f0]
push dword [ebp - 0x2108]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x44d5a7
push 0xc
lea eax, [ebp - 0x1c88]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp - 0x1c84], ebx
je 0x44d561
push dword [ebp - 0x1c84]
call edi
cmp dword [ebp - 0x1c80], ebx
je 0x44d5a7
push dword [ebp - 0x1c80]
call edi
jmp 0x44d5a7
mov eax, dword [ebp - 0x20f8]
mov dword [ebp - 0x1c84], eax
mov eax, dword [ebp - 0x20f4]
push 0xc
mov dword [ebp - 0x1c80], eax
lea eax, [ebp - 0x1c88]
push eax
push 0x26
push esi
mov dword [ebp - 0x1c88], 3
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp - 0x20fc], ebx
je 0x44d5b7
push dword [ebp - 0x20fc]
call edi
cmp dword [ebp - 0x20f8], ebx
je 0x44d5c7
push dword [ebp - 0x20f8]
call edi
cmp dword [ebp - 0x20f4], ebx
je 0x44d5d7
push dword [ebp - 0x20f4]
call edi
cmp dword [ebp - 0x215c], 2
push 4
pop edi
jne 0x44d621
lea eax, [ebp - 0x20f0]
mov dword [ebp - 0x20e4], ebx
push eax
lea eax, [ebp - 0x20e4]
mov dword [ebp - 0x20f0], edi
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [ebp - 0x20e4], 0x3100
lea eax, [ebp - 0x20e4]
push edi
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp - 0x20e8]
push 0xffffffffffffffff
push dword [ebp - 0x2110]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x44d974
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x44d974
push ebx
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2104], ebx
push eax
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2114], edi
push eax
push ebx
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x44d974
cmp dword [ebp - 0x2104], 0xc8
jne 0x44d974
lea ecx, [ebp - 0x1cd4]
call fcn.00404dc9
push 0x208
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00464590
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44d877
xor eax, eax
lea edi, [ebp - 0x1c8c]
stosd dword es:[edi], eax
push 0x64
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call fcn.00464590
add esp, 0xc
lea eax, [ebp - 0x1c8c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x44d713
push 0x32
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
jmp 0x44d73e
mov ecx, dword [0x4f0c24]
push ecx
lea eax, [ecx + 1]
mov dword [0x4f0c24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x__d
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push 0x31
push eax
call fcn.0044d9b4
add esp, 0x18
lea ecx, [ebp - 0x20e0]
call fcn.0040a6f3
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20e0]
push eax
call fcn.0040a68b
pop ecx
pop ecx
lea eax, [ebp - 0x74]
mov edi, 0x4cf78c
push eax
lea eax, [ebp - 0x20e0]
push edi
push eax
call fcn.0040a68b
pop ecx
pop ecx
push eax
call fcn.0040a68b
pop ecx
pop ecx
lea ecx, [ebp - 0x20e0]
call fcn.0040a840
push eax
lea ecx, [ebp - 0x1ca4]
call fcn.00404d2c
lea ecx, [ebp - 0x20e0]
call fcn.0040a6d0
lea ecx, [ebp - 0x1ca4]
mov byte [ebp - 4], 2
call fcn.00404e0f
push eax
lea ecx, [ebp - 0x1cbc]
call fcn.00404d2c
lea ecx, [ebp - 0x1cbc]
mov byte [ebp - 4], 3
call fcn.0044838e
lea ecx, [ebp - 0x1cbc]
mov byte [ebp - 4], 2
call fcn.00405118
lea eax, [ebp - 0x1ca4]
push eax
call fcn.00404348
pop ecx
lea ecx, [ebp - 0x688]
mov esi, eax
call fcn.0040a6f3
lea eax, [ebp - 0x688]
mov byte [ebp - 4], 4
push esi
push eax
call fcn.00405abb
pop ecx
pop ecx
push dword [ebp - 0x2118]
lea eax, [ebp - 0x688]
push edi
push eax
call fcn.0040a68b
pop ecx
pop ecx
push eax
call fcn.0040a68b
pop ecx
pop ecx
lea ecx, [ebp - 0x688]
call fcn.0040a840
push eax
lea ecx, [ebp - 0x1cbc]
call fcn.00404d2c
lea ecx, [ebp - 0x688]
call fcn.0040a6d0
lea eax, [ebp - 0x1cbc]
push eax
lea ecx, [ebp - 0x1cd4]
call fcn.00405cfe
lea ecx, [ebp - 0x1cbc]
call fcn.00405118
lea ecx, [ebp - 0x1ca4]
call fcn.00405118
mov esi, dword [ebp - 0x211c]
push 0x4d3898
lea ecx, [ebp - 0x1cd4]
mov dword [ebp - 0x20ec], ebx
call fcn.00404e0f
push eax
lea eax, [ebp - 0x20ec]
push eax
call fcn.00470f1a
add esp, 0xc
test eax, eax
jne 0x44d969
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
jmp 0x44d917
cmp dword [ebp - 0x20e8], 0
je 0x44d92b
push 0x800
lea eax, [ebp - 0xa7c]
push ebx
push eax
call fcn.00464590
add esp, 0xc
mov dword [ebp - 0x20e4], ebx
jmp 0x44d8f9
cmp dword [ebp - 0x20e4], 0
je 0x44d917
push dword [ebp - 0x20ec]
lea eax, [ebp - 0xa7c]
push 1
push dword [ebp - 0x20e4]
push eax
call fcn.004734fe
add esp, 0x10
lea eax, [ebp - 0x20e4]
push eax
push 0x800
lea eax, [ebp - 0xa7c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x44d8d3
lea eax, [ebp - 0x20e8]
mov dword [ebp - 0x20e8], ebx
push eax
push esi
call edi
test eax, eax
jne 0x44d8ad
push dword [ebp - 0x20ec]
call fcn.00471b65
mov edi, dword [ebp - 0x2120]
pop ecx
test edi, edi
je 0x44d966
cmp dword [ebp + 0x1c], 0
je 0x44d966
lea ecx, [ebp - 0x1cd4]
call fcn.00404e0f
push eax
push 0x4d3890
push 0xffffffffffffffff
push dword [ebp + 0x1c]
push edi
call fcn.0044d9b4
add esp, 0x14
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x1cd4]
call fcn.00405118
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0x2108]
push dword [ebp - 0x2124]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, ebx
jmp 0x44d99a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461014
leave
ret