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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x10a64dc]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], edi
je 0x1026051
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1026051
cmp edi, 0xffffffff
je 0x1026051
cmp edi, ebx
je 0x1026051
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
or dword [ebp - 0x238], 0xffffffff
or dword [ebp - 0x260], 0xffffffff
lea eax, [ebp - 0x204]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
push esi
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x268], 0x3c
mov dword [ebp - 0x254], 0x100
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1025e07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x102600b
push ebx
push ebx
push ebx
push 1
push 0x100502c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x21c], esi
je 0x1025dfa
mov eax, 0x3a98
push eax
push eax
push eax
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x1025dfa
push ebx
push 0x4000
push 0x1025d10
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x1025dfa
push ebx
push dword [ebp - 0x250]
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, ebx
mov dword [ebp - 0x214], eax
je 0x1025dfa
cmp dword [ebp - 0x25c], 2
jne 0x1025e81
mov eax, 0x800000
jmp 0x1025e83
xor eax, eax
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x23c]
push 0x1005024
push dword [ebp - 0x214]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x210], esi
je 0x1025dfa
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1025dfa
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1025dfa
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x208], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1025dfa
mov eax, dword [ebp - 0x208]
cmp eax, ebx
je 0x1025ff6
add dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp + 8]
ja 0x1025ffa
inc eax
cmp dword [ebp - 0x218], eax
jae 0x1025f5b
push dword [ebp - 0x20c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x208]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20c], eax
je 0x1026001
mov eax, dword [ebp - 0x208]
inc eax
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x20c]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1025dfa
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x208]
ja 0x1026006
xor esi, esi
cmp eax, ebx
jbe 0x1025fea
push ebx
lea ecx, [ebp - 0x22c]
push ecx
sub eax, esi
push eax
mov eax, dword [ebp - 0x20c]
add eax, esi
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1025dfa
add esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
cmp esi, eax
jb 0x1025fb2
cmp dword [ebp - 0x208], ebx
ja 0x1025ed9
xor edi, edi
jmp 0x102600b
mov edi, 0x2070
jmp 0x102600b
push 0xe
pop edi
jmp 0x102600b
mov edi, 0x570
push dword [ebp - 0x20c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x210], ebx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop ecx
je 0x102602d
push dword [ebp - 0x210]
call esi
cmp dword [ebp - 0x214], ebx
je 0x102603d
push dword [ebp - 0x214]
call esi
cmp dword [ebp - 0x21c], ebx
je 0x102604d
push dword [ebp - 0x21c]
call esi
mov eax, edi
jmp 0x1026054
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01076f63
leave
ret 4