Function at 0x46dde0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9518
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call fcn.0046d5a0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x46de59
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0046d060
push edi
lea ecx, [ebp - 0x70]
call fcn.0046d2e0
lea edx, [edi + 0x1c]
push edx
lea ecx, [ebp - 0x54]
call fcn.00404900
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0xa]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x46de84
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 0xa]
call fcn.00402490
mov eax, dword [esi + 2]
mov edx, dword [esi + 0xa]
mov dword [ebp - 0x14], edx
cmp dword [eax - 4], ebx
jle 0x46de9e
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 2]
call fcn.00402490
mov eax, dword [esi + 0x16]
mov ecx, dword [esi + 2]
mov dword [ebp - 0x18], ecx
cmp dword [eax - 4], ebx
jle 0x46deb8
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x16]
call fcn.00402490
mov eax, dword [esi + 0x16]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x12]
cmp dword [eax - 4], ebx
jle 0x46ded2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 0x12]
call fcn.00402490
mov eax, dword [esi + 0xe]
mov edx, dword [esi + 0x12]
mov dword [ebp - 0x20], edx
cmp dword [eax - 4], ebx
jle 0x46deec
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0xe]
call fcn.00402490
mov eax, dword [esi + 0x1a]
mov ecx, dword [esi + 0xe]
mov dword [ebp - 0x24], ecx
cmp dword [eax - 4], ebx
jle 0x46df06
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x1a]
call fcn.00402490
mov eax, dword [esi + 0x1a]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 6]
cmp dword [eax - 4], ebx
jle 0x46df20
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 6]
call fcn.00402490
mov eax, dword [esi + 0x22]
cmp dword [eax - 4], 1
mov ebx, dword [esi + 6]
jle 0x46df38
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x22]
call fcn.004014b0
movzx edx, byte [esi]
push 0
mov edi, dword [esi + 0x22]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi + 0x8b]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push ecx
mov ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [esi + 0x8f]
push edx
movzx edx, byte [esi + 1]
push eax
push ecx
push ebx
push edi
push edx
call fcn.00469e40
mov edi, eax
add esp, 0x40
test edi, edi
je 0x46dfb6
push edi
push str.PreDownloadHandling:_ERROR_in_GetInternetRequestHandle____d_n
call fcn.00423ad0
add esp, 8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x30]
cmp edi, 0x130
jne 0x46e001
mov eax, dword [0x515dc0]
push eax
push str.PreDownloadHandling_:File_not_modified_since_the_time:__S_n
call fcn.00423db0
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00464100
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, 0x15f91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xc8
je 0x46e041
push edi
push str.PreDownloadHandling_:_Failed_with_the_http_status_code___d__n
call fcn.00423ad0
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00464100
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x515db8], 1
mov ebx, dword [ebp - 0x3c]
jne 0x46e06c
push 0x515dc0
push ebx
call fcn.00464de0
mov ecx, dword [0x515dc0]
add esp, 8
push ecx
lea ecx, [esi + 0x26]
call fcn.00465990
jmp 0x46e099
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x14], 0
call fcn.00464de0
mov edi, dword [ebp - 0x14]
add esp, 8
push edi
lea ecx, [esi + 0x26]
call fcn.00465990
test edi, edi
je 0x46e099
push edi
call fcn.0048efd8
add esp, 4
push 0
lea eax, [ebp - 0x2c]
push eax
lea edi, [esi + 0x93]
push edi
push 0
push 0x20000005
push ebx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [edi]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x83], edi
cmp ebx, 1
je 0x46e166
cmp eax, 0x7a
je 0x46e166
cmp eax, 0x2f76
je 0x46e166
push eax
push str.PreDownloadHandling_:__Error_in_Content_Length_Header_____d__n
call fcn.00423ad0
push ebx
call fcn.00464180
add esp, 0xc
cmp dword [ebp - 0x14], 0x216
je 0x46e13c
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.0046c7d0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x70]
mov dword [esi + 0x7f], 1
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push str.PreDownloadHandling_:_Content_Length_of_the_request_file:__u_Bytes_n
call fcn.00423db0
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00464100
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0046d4c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4