Function at 0x4479a0
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 0x4e8f3d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x188
mov eax, dword [0x545100]
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 - 0x48], edi
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
push 0
sub eax, ecx
mov dword [ebp - 0x4c], 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 0x447d28
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 0x447d44
test eax, eax
je 0x447d60
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x447d7d
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x447d96
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x447db5
test eax, eax
je 0x447dd4
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x447df1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push str.Content_Length
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
call fcn.0040ab20
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00448bc0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 0
call fcn.0040a900
cmp dword [edi + 0x4c], 0
je 0x447b2d
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 4
push eax
push 0
push 0x20000013
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x447b2d
mov edi, dword [edi + 0x4c]
push dword [ebp - 0x28]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
test al, al
je 0x447e0a
mov edi, dword [ebp - 0x48]
cmp dword [edi + 0x48], 0
jne 0x447b43
cmp dword [edi + 0x68], 0
jne 0x447b43
cmp dword [edi + 0x4c], 0
je 0x447cf4
push ecx
push dword [edi + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.00448c90
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
cmp dword [edi + 0x68], 0
je 0x447ba2
cmp dword [edi + 0x6c], 7
lea eax, [edi + 0x58]
mov dword [ebp - 0x28], eax
mov ecx, eax
jbe 0x447b7e
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 - 0x2c], esi
cmp esi, 0xffffffff
je 0x447e27
push 0
push dword [edi + 0x54]
push dword [ebp - 0x38]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x447e54
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x447e73
test eax, eax
je 0x447e92
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x447eaf
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x447c18
mov eax, dword [eax]
push 0
mov edi, dword [eax + 4]
mov ecx, edi
mov eax, dword [ebp - 0x48]
push dword [eax + 0x2c]
push dword [ebp - 0x38]
call dword [0x4f1320]
mov ecx, dword [ebp - 0x28]
call edi
test al, al
je 0x447ec8
jmp 0x447c58
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x447c2f
mov edx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x38]
push edx
push eax
push dword [ecx + 4]
call fcn.00448de0
cmp esi, 0xffffffff
je 0x447c5b
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push dword [edi + 0x2c]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x447ee5
jmp 0x447c5b
mov edi, dword [ebp - 0x48]
mov edx, dword [edi + 0x70]
mov ecx, dword [edi + 0x2c]
add edx, ecx
mov eax, dword [edi + 0x74]
mov dword [edi + 0x70], edx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x447c8d
push dword [ebp - 0x50]
mov eax, dword [eax]
push dword [ebp - 0x54]
push edx
mov edi, dword [eax + 4]
push ecx
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x28]
call edi
mov edi, dword [ebp - 0x48]
cmp dword [edi + 0x2c], 0
ja 0x447ba2
cmp esi, 0xffffffff
je 0x447ca3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x447cf4
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x447ccd
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447f0d
push edx
push ecx
call fcn.004a5ea3
add esp, 8
jmp 0x447cf4
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x447d0a
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push 0x2ef1
lea ecx, [ebp - 0x94]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push eax
lea ecx, [ebp - 0xa8]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push 0x2ef1
lea ecx, [ebp - 0xe4]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push eax
lea ecx, [ebp - 0xf8]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push 0x2ef1
lea ecx, [ebp - 0x10c]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x120]
push 0x19
push str.Unable_to_open_file__
push eax
call fcn.00448d00
push 0x542628
lea eax, [ebp - 0x120]
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x134]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x148]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push 0x2ef1
lea ecx, [ebp - 0x15c]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push eax
lea ecx, [ebp - 0x170]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push 0x2ef1
lea ecx, [ebp - 0x184]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
push str.Unable_to_write_to_the_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x198]
call fcn.00499180
push 0x542628
lea eax, [ebp - 0x198]
push eax
call fcn.004a869b
call fcn.004b26bf
int3