Function at 0x100029a0
Capabilities:
Check http status code
Create http request
Get http content length
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100728b1
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.1000a6f0
mov eax, dword [0x10090014]
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 edi, ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x1050], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x1054], eax
mov dword [ebp - method.RC::RCInternetHandle.virtual_0], 0x1008a2c0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1064], ebx
push 4
lea eax, [ebp - 0x105c]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push ebx
mov dword [ebp - 0x105c], 0xbb8
call esi
push 4
lea eax, [ebp - 0x105c]
mov dword [ebp - 0x105c], 5
push eax
push 3
push ebx
call esi
mov dword [ebp - 0x1044], 0
mov dword [ebp - method.RC::RCHttpFile.virtual_0], vtable.RC::RCHttpFile.0
mov dword [ebp - 0x1040], 0
mov esi, dword [ebp - 0x1054]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x10002a77
mov edx, dword [esi]
jmp 0x10002a79
mov edx, esi
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [edx], ax
jne 0x10002a9f
xor ecx, ecx
jmp 0x10002ac3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x105c], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002ab0
sub ecx, dword [ebp - 0x105c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.100016a0
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
push ebx
lea ecx, [ebp - 0x1048]
call fcn.10003f10
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
sete byte [ebp - 0x1049]
cmp eax, 8
jb 0x10002b12
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.100017a0
cmp byte [ebp - 0x1049], 0
mov eax, dword [ebp - 0x1044]
jne 0x10002f59
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x105c], 4
test eax, eax
je 0x10002f35
push 0
lea ecx, [ebp - 0x105c]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x10002f2f
cmp dword [ebp - 0x1058], 0xc8
setne al
test al, al
jne 0x10002f2f
mov eax, dword [ebp - 0x1044]
test eax, eax
je 0x10002ef2
push 0
lea ecx, [ebp - 0x105c]
mov dword [ebp - 0x103c], 0
push ecx
lea ecx, [ebp - 0x103c]
mov dword [ebp - 0x105c], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10002ef2
cmp dword [ebp - 0x103c], 0
mov dword [ebp - 0x105c], 0
je 0x10002ef2
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x105c], eax
test ecx, ecx
je 0x10002c57
cmp dword [esi + 0x14], 8
jb 0x10002bf5
mov edx, dword [esi]
jmp 0x10002bf7
mov edx, esi
push dword [edi + 0x68]
mov eax, dword [ecx]
xorps xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0
push 0
push edx
call dword [eax + 0xc]
mov ecx, dword [edi]
push dword [edi + 0x68]
mov ebx, dword [ebp - 0x103c]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
push dword [edi + 0x68]
push dword [ebp - 0x105c]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 0x14], 8
jb 0x10002c3a
mov edx, dword [esi]
jmp 0x10002c3c
mov edx, esi
push dword [edi + 0x68]
mov ecx, dword [edi]
xorps xmm0, xmm0
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push 0
push ebx
push edx
call dword [eax + 0xc]
jmp 0x10002c5d
mov ebx, dword [ebp - 0x103c]
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1058], 0
push 0
push eax
call fcn.100191c0
add esp, 0xc
mov dword [ebp - 0x1030], ebx
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x102c], eax
movlpd qword [ebp - 0x1028], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1038], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1034], eax
xor eax, eax
movups xmmword [ebp - 0x1020], xmm0
jb 0x10002de3
ja 0x10002cc4
test ebx, ebx
je 0x10002de3
mov ecx, dword [edi]
test ecx, ecx
je 0x10002cdc
mov eax, dword [ecx]
push dword [edi + 0x68]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x10002e51
lea eax, [ebp - 0x1038]
push eax
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1048]
call fcn.100040f0
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002d0b
cmp dword [edi], 0
jne 0x10002ebe
jmp 0x10002dac
test esi, esi
je 0x10002d9e
push 0
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x106c], 0
push eax
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1050]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x106c], esi
je 0x10002d4b
cmp dword [edi], 0
jne 0x10002e85
mov ebx, dword [edi]
test ebx, ebx
je 0x10002dac
push dword [edi + 0x68]
movsd xmm0, qword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1054]
sub esp, 8
mov esi, dword [ebx]
movsd qword [esp], xmm0
push dword [ebp - 0x1028]
push dword [ebp - 0x103c]
call fcn.100015d0
push eax
mov ecx, ebx
call dword [esi + 0xc]
mov ecx, dword [edi]
push dword [edi + 0x68]
mov eax, dword [ebp - 0x105c]
mov ebx, dword [ebp - 0x1028]
add eax, ebx
mov edx, dword [ecx]
push eax
call dword [edx + 8]
jmp 0x10002db2
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x1058]
mov ebx, dword [ebp - 0x1028]
xor eax, eax
cmp dword [ebp - 0x1058], 5
ja 0x10002dd7
cmp dword [ebp - 0x1024], eax
ja 0x10002dd7
jb 0x10002cc4
cmp ebx, dword [ebp - 0x103c]
jb 0x10002cc4
mov esi, dword [ebp - 0x1054]
mov ebx, dword [ebp - 0x103c]
cmp dword [ebp - 0x1028], ebx
jne 0x10002eb9
cmp dword [ebp - 0x1024], eax
jne 0x10002eb9
add dword [edi + 4], ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x10002e34
cmp dword [esi + 0x14], 8
jb 0x10002e0c
mov esi, dword [esi]
push dword [edi + 0x68]
movsd xmm0, qword [ebp - 0x1018]
mov eax, dword [ecx]
sub esp, 8
movsd qword [esp], xmm0
push ebx
push ebx
push esi
call dword [eax + 0xc]
mov ecx, dword [edi]
push dword [edi + 0x68]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1048]
call fcn.10003d80
lea ecx, [ebp - 0x1068]
call fcn.10003c60
mov al, 1
jmp 0x10002fb9
push dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x1008a294
call fcn.10001540
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1048]
call fcn.10003d80
lea ecx, [ebp - 0x1068]
call fcn.10003c60
jmp 0x10002fb7
push dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x1008a2a8
call fcn.10001540
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1048]
call fcn.10003d80
lea ecx, [ebp - 0x1068]
call fcn.10003c60
jmp 0x10002fb7
cmp dword [edi], 0
je 0x10002ed7
push dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x1008a284
call fcn.10001540
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1048]
call fcn.10003d80
lea ecx, [ebp - 0x1068]
call fcn.10003c60
jmp 0x10002fb7
cmp dword [edi], 0
je 0x10002f10
push dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x1008a284
call fcn.10001540
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1048]
call fcn.10003d80
test ebx, ebx
je 0x10002fb7
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10002fb7
mov eax, dword [ebp - 0x1044]
cmp dword [edi], 0
je 0x10002f59
push dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x1008a284
call fcn.10001540
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x1044]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - method.RC::RCHttpFile.virtual_0], vtable.RC::RCHttpFile.0
test eax, eax
je 0x10002f78
push eax
call esi
xor eax, eax
mov dword [ebp - 0x1044], eax
mov ecx, dword [ebp - 0x1040]
test ecx, ecx
je 0x10002f95
push ecx
call esi
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1040], 0
mov dword [ebp - method.RC::RCInternetHandle.virtual_0], vtable.RC::RCInternetHandle.0
test eax, eax
je 0x10002fb0
push eax
call esi
mov dword [ebp - 0x1044], 0
test ebx, ebx
je 0x10002fb7
push ebx
call esi
xor al, al
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.1000a6d9
mov esp, ebp
pop ebp
ret 0xc