Function at 0x1001379d
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10035e28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x434], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.100154e0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.100154e0
push 0x38
lea eax, [ebp - 0x46c]
push ebx
push eax
call fcn.100154e0
mov eax, 0x104
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x440], eax
add esp, 0x24
lea eax, [ebp - 0x414]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x470]
push eax
push SysReAllocString
push ebx
lea ecx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x470], 0x3c
mov dword [ebp - 0x460], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x430], esi
cmp esi, ebx
jne 0x10013876
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100154ca
leave
ret
push ebx
push dword [ebp - 0x458]
push dword [ebp - 0x460]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x42c], eax
cmp eax, ebx
jne 0x1001389d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10013865
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x444]
push 0x1002c674
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x428], edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp edi, ebx
jne 0x100138f1
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x430]
call esi
mov al, bl
jmp 0x10013867
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, 0x1f40
push esi
call fcn.100152a7
push esi
push ebx
push eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], ebx
call fcn.100154e0
or dword [ebp - 0x424], 0xffffffff
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x420]
mov byte [ebp - 0x415], bl
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
call edi
test eax, eax
je 0x100139f9
cmp dword [ebp - 0x41c], ebx
jbe 0x100139dd
cmp dword [ebp - 0x424], 0xffffffff
jne 0x10013989
mov ecx, dword [ebp - 0x434]
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
call fcn.100136fb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp eax, 0xffffffff
je 0x100139a9
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ebx
push dword [ebp - 0x420]
call fcn.100154e0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], ebx
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x10013947
cmp dword [ebp - 0x424], 0xffffffff
je 0x100139f9
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x415], 1
push dword [ebp - 0x420]
call fcn.1001538f
pop ecx
push dword [ebp - 0x428]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov bl, byte [ebp - 0x415]
jmp 0x100138d4