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

Disassembly:
push 0xffffffffffffffff
push 0x1036c4c
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0102ce40
mov eax, dword [0x10482e0]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10482e0]
xor eax, esp
push eax
lea eax, [esp + 0x1054]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1064]
push 0
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x20], eax
mov ebx, 4
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1064], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push eax
mov dword [esp + 0x28], 0x7d0
call edi
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x1c]
push edx
push 3
push eax
mov dword [esp + 0x28], 3
call edi
cmp dword [esi + 0x18], 8
jb 0x100e747
mov esi, dword [esi + 4]
jmp 0x100e749
add esi, ebx
mov ecx, dword [esp + 0x20]
push 0
push 0x400000
push 0xffffffffffffffff
push 0
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
mov byte [esp + 0x105c], 1
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x18], ebx
je 0x100e790
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0x20000013
push edi
call esi
cmp dword [esp + 0x2c], 0xc8
je 0x100e7b9
test edi, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x100e7a7
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100e7b2
push eax
call esi
xor al, al
jmp 0x100e9e1
test edi, edi
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
je 0x100e7eb
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000005
push edi
call esi
test eax, eax
setne al
test al, al
jne 0x100e84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100e79a
mov byte [esp + 0x16], 1
mov dword [esp + 0x1c], 0x3200000
push ebp
lea esi, [esp + 0x34]
call fcn.0100efa0
add esp, 4
mov eax, esi
push eax
mov byte [esp + 0x1060], 2
call fcn.0100f210
add esp, 4
test al, al
jne 0x100e834
mov ecx, esi
push ecx
call fcn.0100f2e0
add esp, 4
mov esi, 8
mov byte [esp + 0x105c], 3
cmp dword [ebp + 0x18], esi
jb 0x100e85d
mov eax, dword [ebp + 4]
jmp 0x100e860
cmp dword [esp + 0x1c], 0
jne 0x100e805
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100e7a4
lea eax, [ebp + 4]
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x100e8be
cmp dword [esp + 0x48], esi
jb 0x100e895
mov edx, dword [esp + 0x34]
push edx
call fcn.0101af08
add esp, 4
cmp edi, ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
je 0x100e8b3
push edi
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebp
jmp 0x100e7ad
push 0x20
call fcn.0101acde
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x100e8db
mov eax, dword [esp + 0x1c]
call fcn.0100e680
mov esi, eax
jmp 0x100e8dd
xor esi, esi
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x17], 1
jae 0x100e979
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100e900
cmp byte [esp + 0x16], 0
mov edi, 0x1000
jne 0x100e914
sub ecx, eax
cmp ecx, edi
jae 0x100e914
mov edi, ecx
lea eax, [esp + 0x4c]
push eax
mov edx, edi
lea eax, [esp + 0x28]
call fcn.0100ee20
mov edi, eax
test edi, edi
jne 0x100e93c
cmp byte [esp + 0x16], al
jne 0x100e971
push 0xa
call ebx
add ebp, 1
cmp ebp, 3
ja 0x100e971
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e96b
cmp edi, dword [esp + 0x28]
jne 0x100e96b
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jb 0x100e900
jmp 0x100e975
mov edi, dword [esp + 0x24]
jmp 0x100e985
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp dword [esi + 0xc], ecx
je 0x100e98a
cmp byte [esp + 0x16], 0
jne 0x100e98a
mov byte [esp + 0x17], 0
push esi
call fcn.0101af08
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x48], 8
jb 0x100e9b2
mov edx, dword [esp + 0x34]
push edx
call fcn.0101af08
add esp, 4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
je 0x100e9d2
push edi
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100e9dd
push eax
call esi
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1038]
xor ecx, esp
call fcn.0101aef9
add esp, 0x104c
ret