Function at 0x455a70
Capabilities:
Read http header
Receive http response
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7ccd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x188
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
push 0
sub eax, ecx
mov dword [ebp - 0x50], edi
push eax
push eax
push ecx
push 0
push 0
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x455e24
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x455e40
test eax, eax
je 0x455e5f
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x455e7c
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x455e95
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x455eb4
test eax, eax
je 0x455ed3
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x455ef0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.Content_Length
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
call fcn.0040aa50
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00456cb0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 0
call fcn.0040ab30
cmp dword [edi + 0x4c], 0
je 0x455bfd
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 4
push eax
push 0
push 0x20000013
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x455bfd
mov edi, dword [edi + 0x4c]
push dword [ebp - 0x28]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
test al, al
je 0x455f09
mov edi, dword [ebp - 0x4c]
cmp dword [edi + 0x48], 0
jne 0x455c13
cmp dword [edi + 0x68], 0
jne 0x455c13
cmp dword [edi + 0x4c], 0
je 0x455df0
push ecx
push dword [edi + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.00456df0
or esi, 0xffffffff
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 3
cmp dword [edi + 0x68], 0
je 0x455c72
cmp dword [edi + 0x6c], 8
lea eax, [edi + 0x58]
mov dword [ebp - 0x28], eax
mov ecx, eax
jb 0x455c4e
mov ecx, dword [eax]
push 0
push 0x80
push 4
push 0
push 5
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
je 0x455f26
push 0
push dword [edi + 0x54]
push dword [ebp - 0x3c]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x455f59
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x455f78
test eax, eax
je 0x455f97
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x455fb4
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x455d6e
mov eax, dword [eax]
push 0
mov edi, dword [eax + 4]
mov ecx, edi
mov eax, dword [ebp - 0x4c]
add eax, 0x2c
mov dword [ebp - 0x28], eax
push dword [eax]
push dword [ebp - 0x3c]
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x2c]
call edi
test al, al
je 0x455fcd
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x70]
mov ecx, dword [eax]
add edx, ecx
mov eax, dword [edi + 0x74]
mov dword [edi + 0x70], edx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x455d26
push dword [ebp - 0x54]
mov eax, dword [eax]
push dword [ebp - 0x58]
push edx
mov edi, dword [eax + 4]
push ecx
mov ecx, edi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x2c]
call edi
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
ja 0x455c72
cmp esi, 0xffffffff
je 0x455d3e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x455df0
mov edx, dword [ebp - 0x34]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x455dc9
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455fea
jmp 0x455dc9
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x455d90
mov edx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
push eax
push dword [ecx + 4]
call fcn.0044abd0
mov ecx, dword [ebp - 0x28]
jmp 0x455d96
lea ecx, [edi + 0x2c]
mov dword [ebp - 0x28], ecx
cmp esi, 0xffffffff
je 0x455cf2
mov eax, dword [ecx]
push 0
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455fef
jmp 0x455cf2
push edx
push ecx
call fcn.004a4c93
add esp, 8
jmp 0x455df0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x455e06
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x70]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push 0x2ef1
lea ecx, [ebp - 0x98]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push eax
lea ecx, [ebp - 0xac]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push 0x2ef1
lea ecx, [ebp - 0xe8]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push eax
lea ecx, [ebp - 0xfc]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push 0x2ef1
lea ecx, [ebp - 0x110]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
mov ecx, dword [ebp - 0x28]
call fcn.0040abd0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x508ba8
push eax
lea ecx, [ebp - 0x124]
call fcn.00413ae0
push 0x51f1f8
lea eax, [ebp - 0x124]
push eax
call fcn.004a765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x138]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push 0x2ef1
lea ecx, [ebp - 0x160]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push eax
lea ecx, [ebp - 0x174]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
push 0x2ef1
lea ecx, [ebp - 0x188]
call fcn.00492470
push 0x51f1f8
mov eax, ecx
push eax
call fcn.004a765b
call fcn.004b14ff
push str.Unable_to_write_to_the_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00492530
push 0x51f1f8
lea eax, [ebp - 0x19c]
push eax
call fcn.004a765b
int3