Function at 0x101ae330
Capabilities:
Read http header
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022f89b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
mov byte [ebp - 0x111], 0
lea ecx, [ebp - 0x110]
call fcn.101adff0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x148]
call fcn.101adb40
mov ecx, eax
call fcn.100061e0
movzx eax, al
test eax, eax
je 0x101ae39f
mov dword [ebp - 0x14c], 0
jmp 0x101ae3b7
mov ecx, dword [ebp - 0x148]
call fcn.101adb40
mov ecx, eax
call fcn.100653e0
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x110]
call fcn.101aeba0
movzx eax, al
test eax, eax
jne 0x101ae3f8
mov byte [ebp - 0x112], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x112]
jmp 0x101ae983
push 0x10234a08
lea ecx, [ebp - 0xc4]
call fcn.101ae1e0
push 0x10234a14
lea ecx, [ebp - 0x58]
call fcn.10065620
mov byte [ebp - 4], 1
push 0x10234a18
lea ecx, [ebp - 0x70]
call fcn.10065620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
call fcn.101af590
movzx ecx, al
test ecx, ecx
jne 0x101ae454
mov dword [ebp - 0x150], 1
jmp 0x101ae45e
mov dword [ebp - 0x150], 0
mov dl, byte [ebp - 0x150]
mov byte [ebp - 0x113], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.1000d890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.1000d890
movzx eax, byte [ebp - 0x113]
test eax, eax
je 0x101ae4b1
mov byte [ebp - 0x114], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x114]
jmp 0x101ae983
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x110]
call fcn.101af100
movzx edx, al
test edx, edx
jne 0x101ae4eb
mov byte [ebp - 0x115], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x115]
jmp 0x101ae983
xorps xmm0, xmm0
movlpd qword [ebp - 0x128], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x144], xmm0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x154], 8
push 0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0x20000005
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x101ae585
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
mov byte [ebp - 0x116], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x116]
jmp 0x101ae983
cmp dword [ebp - 0x108], 0
je 0x101ae5a5
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x108], 0
push 0x10234a1c
lea ecx, [ebp - 0xc4]
call fcn.101ae1e0
push 0x10234a24
lea ecx, [ebp - 0x28]
call fcn.10065620
mov byte [ebp - 4], 3
push 0x10234a28
lea ecx, [ebp - 0x40]
call fcn.10065620
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x110]
call fcn.101af590
movzx eax, al
test eax, eax
jne 0x101ae601
mov dword [ebp - 0x158], 1
jmp 0x101ae60b
mov dword [ebp - 0x158], 0
mov cl, byte [ebp - 0x158]
mov byte [ebp - 0x117], cl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.1000d890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000d890
movzx edx, byte [ebp - 0x117]
test edx, edx
je 0x101ae65e
mov byte [ebp - 0x118], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x118]
jmp 0x101ae983
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
call fcn.101af100
movzx ecx, al
test ecx, ecx
jne 0x101ae698
mov byte [ebp - 0x119], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x119]
jmp 0x101ae983
mov ecx, dword [ebp + 8]
add ecx, 0xd8
call fcn.100061e0
movzx edx, al
test edx, edx
je 0x101ae6e4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
call fcn.101af2a0
mov byte [ebp - 0x11a], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x11a]
jmp 0x101ae983
push 0x3e8000
call fcn.101d5a17
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x120], ecx
push 0
push 0x3e8000
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.101d5a30
mov dword [ebp - 0x134], eax
push 0
push 0x3e8000
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call fcn.101d5aa0
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x170]
or eax, dword [ebp - 0x16c]
je 0x101ae766
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
add ecx, 0xd8
call fcn.10006200
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x101ae7dd
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x160], edx
push 1
mov eax, dword [ebp - 0x160]
push eax
call fcn.101d50ac
add esp, 8
mov byte [ebp - 0x11b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x11b]
jmp 0x101ae983
mov byte [ebp - 0x111], 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0
mov dword [ebp - 0x138], 0
jmp 0x101ae80c
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x134]
jae 0x101ae935
push 0x3e8000
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.101ee530
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
push 0x3e8000
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x101ae883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx + 0x80], eax
mov byte [ebp - 0x111], 0
jmp 0x101ae935
mov eax, dword [ebp - 0x12c]
xor ecx, ecx
add eax, dword [ebp - 0x144]
adc ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x164], 0
push 0
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov eax, dword [ebp + 8]
add eax, 0xf0
push eax
call fcn.101adb30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x101ae930
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xf0
call fcn.101ae270
movzx eax, al
test eax, eax
jne 0x101ae930
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0xffffffff
mov byte [ebp - 0x111], 0
jmp 0x101ae7fd
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x168], edx
push 1
mov eax, dword [ebp - 0x168]
push eax
call fcn.101d50ac
add esp, 8
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebp - 0x111]
mov byte [ebp - 0x11c], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.101ae140
mov al, byte [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret 4