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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6acd
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
push 0
sub eax, ecx
mov dword [ebp - 0x40], ebx
push eax
push eax
push ecx
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x474258
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x474274
test eax, eax
je 0x474290
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4742ad
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4742c6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x4742e5
test eax, eax
je 0x474304
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x474321
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0xe
push str.Content_Length
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], al
call fcn.004123e0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004751d0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
call fcn.004127e0
cmp dword [ebx + 0x4c], 0
je 0x47406c
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 4
push eax
push 0
push 0x20000013
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x47406c
mov edi, dword [ebx + 0x4c]
push dword [ebp - 0x20]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
test al, al
je 0x47433a
cmp dword [ebx + 0x48], 0
jne 0x474082
cmp dword [ebx + 0x68], 0
jne 0x474082
cmp dword [ebx + 0x4c], 0
je 0x474226
push ecx
push dword [ebx + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.0042f470
or esi, 0xffffffff
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 4
cmp dword [ebx + 0x68], 0
je 0x4740e0
cmp dword [ebx + 0x6c], 8
lea eax, [ebx + 0x58]
jb 0x4740b9
mov eax, dword [ebx + 0x58]
push 0
push 0x80
push 4
push 0
push 5
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
je 0x474357
nop dword [eax]
push 0
push dword [ebx + 0x54]
push dword [ebp - 0x30]
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x47438a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x4743a9
test eax, eax
je 0x4743c8
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4743e5
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x474153
mov eax, dword [eax]
push 0
push dword [ebx + 0x2c]
mov edi, dword [eax + 4]
mov ecx, edi
push dword [ebp - 0x30]
call dword [0x4d9444]
mov ecx, dword [ebp - 0x20]
call edi
test al, al
je 0x4743fe
jmp 0x474196
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x47416f
push dword [ebp - 0x44]
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebp - 0x30]
add edx, eax
push edx
push eax
push dword [ecx + 4]
call fcn.0042e960
cmp esi, 0xffffffff
je 0x474196
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebx + 0x2c]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47441b
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x2c]
add edx, ecx
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x70], edx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4741c5
push dword [ebp - 0x48]
mov eax, dword [eax]
push dword [ebp - 0x44]
push edx
mov edi, dword [eax + 4]
push ecx
mov ecx, edi
call dword [0x4d9444]
mov ecx, dword [ebp - 0x20]
call edi
cmp dword [ebx + 0x2c], 0
ja 0x4740e0
cmp esi, 0xffffffff
je 0x4741db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x474226
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x474205
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474443
push edx
push ecx
call fcn.00484d63
add esp, 8
jmp 0x474226
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x47423c
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push 0x2ef1
lea ecx, [ebp - 0x88]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push eax
lea ecx, [ebp - 0x9c]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push 0x2ef1
lea ecx, [ebp - 0xd8]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push eax
lea ecx, [ebp - 0xec]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push 0x2ef1
lea ecx, [ebp - 0x100]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
lea ecx, [ebx + 0x58]
call fcn.00412590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_open_file__s_
push eax
lea ecx, [ebp - 0x114]
call fcn.0041b400
push 0x5057bc
lea eax, [ebp - 0x114]
push eax
call fcn.004a0209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x128]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push 0x2ef1
lea ecx, [ebp - 0x150]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push eax
lea ecx, [ebp - 0x164]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push 0x2ef1
lea ecx, [ebp - 0x178]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
push str.Unable_to_write_to_the_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x18c]
call fcn.0043e110
push 0x5057bc
lea eax, [ebp - 0x18c]
push eax
call fcn.004a0209
call fcn.004a949f
int3