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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e05d2
mov eax, dword fs:[0]
push eax
mov eax, 0x1994
call fcn.004be980
mov eax, dword [0x513720]
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 dword [ebp - 0x1978], edx
mov esi, ecx
push 0x3c
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x1974]
push ebx
push eax
call fcn.004be330
xor eax, eax
mov dword [ebp - 0x1974], edi
push 0xfe
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x10e]
push ebx
push eax
call fcn.004be330
lea eax, [ebp - 0x110]
mov dword [ebp - 0x196c], 0x80
mov dword [ebp - 0x1970], eax
mov edi, 0x7fe
xor eax, eax
push edi
mov word [ebp - 0x1910], ax
lea eax, [ebp - 0x190e]
push ebx
push eax
call fcn.004be330
lea eax, [ebp - 0x1910]
mov dword [ebp - 0x1960], 0x400
mov dword [ebp - 0x1964], eax
xor eax, eax
push edi
mov word [ebp - 0x1110], ax
lea eax, [ebp - 0x110e]
push ebx
push eax
call fcn.004be330
lea eax, [ebp - 0x1110]
mov dword [ebp - 0x1944], 0x400
mov dword [ebp - 0x1948], eax
xor eax, eax
push edi
mov word [ebp - 0x910], ax
lea eax, [ebp - 0x90e]
push ebx
push eax
call fcn.004be330
add esp, 0x3c
mov dword [ebp - 0x193c], 0x400
lea eax, [ebp - 0x910]
mov dword [ebp - 0x1914], ebx
lea ecx, [ebp - 0x199c]
mov dword [ebp - 0x1940], eax
push esi
call fcn.004018ec
push ecx
lea edx, [ebp - 0x199c]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1930]
call fcn.0043416f
pop ecx
xor esi, esi
mov byte [ebp - 4], 2
push ebx
inc esi
lea ecx, [ebp - 0x199c]
push esi
call fcn.004019c4
cmp dword [ebp - 0x191c], 8
lea ecx, [ebp - 0x1974]
push ecx
push bind
lea eax, [ebp - 0x1930]
cmovae eax, dword [ebp - 0x1930]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push ebx
test eax, eax
jne 0x4347a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1930]
push esi
call fcn.00403864
jmp 0x4349e7
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x197c], eax
push ebx
test eax, eax
je 0x43478b
push dword [ebp - 0x195c]
push dword [ebp - 0x1964]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
mov dword [ebp - 0x1984], edi
test edi, edi
jne 0x4347f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1930]
push 0
push esi
call fcn.00403864
jmp 0x4349df
push 0x100
push 0
push 0
push 0x4fe5f0
push dword [ebp - 0x1948]
push 0x501630
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x43482e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1930]
push eax
push 1
call fcn.00403864
jmp 0x4349dc
xor eax, eax
mov dword [ebp - 0x1934], 4
push eax
push eax
push eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x1938], eax
mov dword [ebp - 0x1918], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea eax, [ebp - 0x1938]
push eax
lea eax, [ebp - 0x1934]
push eax
lea eax, [ebp - 0x1918]
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x43489a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1930]
push eax
push 1
call fcn.00403864
jmp 0x4349d5
push esi
call ebx
push 0x100
push 0
push 0
push 0x4fe5f0
push dword [ebp - 0x1948]
push 0x4fe804
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
xor edi, edi
mov esi, eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x1978]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1978], eax
cmp eax, 0xffffffff
jne 0x434915
or dword [ebp - 4], eax
lea ecx, [ebp - 0x1930]
push edi
push 1
call fcn.00403864
xor eax, eax
jmp 0x4349ed
push 0x517328
push 0x400
mov dword [ebp - 0x1980], edi
call fcn.004c0a42
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x434937
push eax
push 1
jmp 0x4349b4
cmp dword [ebp - 0x1918], 0
jbe 0x4349a1
mov ebx, dword [ebp - 0x1980]
push 0x400
push 0
push edi
call fcn.004be330
and dword [ebp - 0x1914], 0
lea eax, [ebp - 0x1914]
add esp, 0xc
push eax
push 0x400
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add ebx, dword [ebp - 0x1914]
lea eax, [ebp - 0x1914]
push 0
push eax
push dword [ebp - 0x1914]
push edi
push dword [ebp - 0x1978]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1918], ebx
ja 0x434946
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call fcn.004b9238
pop ecx
xor eax, eax
inc eax
push 0
mov dword [ebp - 0x1914], eax
push eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1930]
call fcn.00403864
push dword [ebp - 0x1978]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1984]
test esi, esi
je 0x4349dc
push esi
call ebx
push edi
call ebx
push dword [ebp - 0x197c]
call ebx
mov eax, dword [ebp - 0x1914]
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.004b923d
mov esp, ebp
pop ebp
ret