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

Disassembly:
mov eax, 0x468546
call fcn.004656a0
sub esp, 0x28c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x94], 0xf
push edi
mov esi, edx
mov dword [ebp - 0x98], ebx
mov edi, ecx
mov byte [ebp - 0xa8], bl
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1c], eax
jb 0x43135b
mov esi, dword [esi]
push ebx
push 0x80
push 2
push ebx
xor eax, eax
inc eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], eax
jb 0x43137f
mov edi, dword [edi]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x90]
push eax
push str._99_:_:___99____99__n_
push edi
call fcn.0043075b
add esp, 0x14
mov dword [ebp - 0x18], 0xc1c1dd4a
mov cl, 0x4a
mov word [ebp - 0x14], 0xc6c5
mov byte [ebp - 0x12], bl
mov edx, ebx
not cl
xor byte [ebp + edx - 0x17], cl
inc edx
cmp edx, 5
jae 0x4313c7
mov cl, byte [ebp - 0x18]
jmp 0x4313b6
lea eax, [ebp - 0x17]
mov byte [ebp - 0x12], bl
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00443000
mov esi, dword [ebp - 0x1c]
test eax, eax
pop ecx
pop ecx
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
test esi, esi
je 0x431624
lea eax, [ebp - 0x1d0]
push eax
test bl, bl
je 0x431451
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.004127d6
xor eax, eax
lea edx, [ebp - 0x3c]
inc eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], al
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x431430
mov eax, dword [eax]
push 0
push 0x1bb
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea ecx, [ebp - 0xc0]
mov edi, eax
call fcn.00412448
lea ecx, [ebp - 0x3c]
jmp 0x43149e
and dword [ebp - 0x44], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.004127d6
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x431482
mov eax, dword [eax]
push 0
push 0x50
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea ecx, [ebp - 0xd8]
mov edi, eax
call fcn.00412448
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00412665
test edi, edi
je 0x43161d
lea eax, [ebp - 0x298]
push eax
test bl, bl
je 0x431512
xor ebx, ebx
mov dword [ebp - 0x58], 0xf
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call fcn.004127d6
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x4314eb
mov eax, dword [eax]
push 0x800100
push ebx
push ebx
push ebx
push eax
push 0x47bc00
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.00412448
lea ecx, [ebp - 0x6c]
jmp 0x431574
xor ebx, ebx
mov dword [ebp - 0x70], 0xf
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
call fcn.004127d6
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x43154c
mov eax, dword [eax]
push 0x100
push ebx
push ebx
push ebx
push eax
push 0x47bc00
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x108]
mov esi, eax
call fcn.00412448
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00412665
test esi, esi
je 0x431613
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 0x43160d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x431613
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.0043da0b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x431607
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push ebx
call fcn.00440770
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4315f6
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.0043d636
cmp dword [ebp - 0x10], 0
pop ecx
jbe 0x431613
xor ebx, ebx
jmp 0x4315a1
and dword [ebp - 0x10], 0
jmp 0x431613
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0xa8]
call fcn.00412665
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret