Function at 0x432f0a
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50666b
mov eax, dword fs:[0]
push eax
mov eax, 0x18d4
call fcn.004dbe80
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x432f6c
cmp dword [0x5500d4], ebx
je 0x432f65
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___get_cdn_file_size__url_is_empty.
call fcn.0042749e
pop ecx
pop ecx
xor eax, eax
jmp 0x433510
xor eax, eax
push 0x3fe
mov word [ebp - 0x1868], ax
lea eax, [ebp - 0x1866]
push ebx
push eax
call fcn.004d8ce0
add esp, 0xc
push 0x1400
lea eax, [ebp - 0x1468]
push ebx
push eax
call fcn.004d8ce0
add esp, 0xc
push 0x38
lea eax, [ebp - 0x18dc]
push ebx
push eax
call fcn.004d8ce0
lea eax, [ebp - 0x468]
mov dword [ebp - 0x18ac], eax
lea eax, [ebp - 0x1468]
mov dword [ebp - 0x18d0], eax
lea eax, [ebp - 0xc68]
mov dword [ebp - 0x18bc], eax
lea eax, [ebp - 0x1868]
mov dword [ebp - 0x18dc], eax
lea eax, [ebp - 0x868]
mov dword [ebp - 0x18b4], eax
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x18c4], eax
mov eax, 0x200
add esp, 0xc
mov dword [ebp - 0x18c0], eax
mov dword [ebp - 0x18b0], eax
mov dword [ebp - 0x18d8], eax
mov dword [ebp - 0x18b8], eax
mov dword [ebp - 0x18cc], eax
mov dword [ebp - 0x18a8], eax
lea eax, [ebp - 0x18e0]
push eax
push SysReAllocString
push ebx
push esi
mov dword [ebp - 0x18e0], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push ecx
mov dword [ebp - 0x1878], esp
lea esi, [ebp - 0x18a4]
mov dword [ebp - 0x1878], esp
call fcn.004352d9
mov eax, esi
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 0x18d0]
call fcn.00432e61
lea esi, [ebp - 0x1894]
call fcn.0043508e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18a0]
mov ecx, dword [eax]
mov dword [ebp - 0x1874], ecx
cmp eax, ecx
je 0x43343b
lea edi, [ecx + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402447
mov byte [ebp - 4], 2
cmp dword [0x5500d4], ebx
je 0x4330e2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4330c7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___get_cdn_file_size__host_ip__s_
call fcn.0042749e
add esp, 0xc
push ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x186c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x187c], eax
cmp eax, ebx
jne 0x433130
cmp dword [0x5500d4], ebx
je 0x43340f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_open_failed__err__d_.
call fcn.0042749e
add esp, 0xc
jmp 0x43340f
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0x64]
call fcn.0042806b
push 0xa
push 6
push 6
push 0xa
push dword [ebp - 0x187c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1878], 4
mov dword [ebp - 0x1870], ebx
mov dword [ebp - 0x1880], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x433174
mov eax, esi
push ebx
push dword [ebp - 0x18c8]
push eax
push dword [ebp - 0x187c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1884], eax
cmp eax, ebx
jne 0x4331d1
cmp dword [0x5500d4], ebx
je 0x4333d6
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x4331aa
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_connect_failed__ip__s___err__d_.
mov ecx, dword [0x5500d4]
call fcn.0042749e
add esp, 0x10
jmp 0x4333d6
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x18b4]
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x186c], esi
cmp esi, ebx
jne 0x433229
cmp dword [0x5500d4], ebx
je 0x4333d6
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x433213
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_open_request_failed__ip__s___err__d_.
jmp 0x4331be
xor eax, eax
push 0x52df6c
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040ed76
mov byte [ebp - 4], 4
push dword [ebp - 0x18d0]
lea ecx, [ebp - 0x48]
call fcn.00411668
push 0x52df7c
lea ecx, [ebp - 0x48]
call fcn.00411668
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x433271
lea eax, [ebp - 0x48]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4332c3
cmp dword [0x5500d4], ebx
je 0x4333cb
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x43329c
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_add_request_headers_failed__ip__s___err__d_.
mov ecx, dword [0x5500d4]
call fcn.0042749e
add esp, 0x10
jmp 0x4333cb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x433302
cmp dword [0x5500d4], ebx
je 0x4333cb
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x4332ec
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_send_request_failed__ip__s___err__d_.
jmp 0x4332b0
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x43333f
cmp dword [0x5500d4], ebx
je 0x4333cb
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x433326
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_receive_response_failed__ip__s___err__d_.
jmp 0x4332b0
lea eax, [ebp - 0x1880]
push eax
lea eax, [ebp - 0x1878]
push eax
lea eax, [ebp - 0x1870]
push eax
push ebx
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x433389
cmp dword [ebp - 0x1870], ebx
jbe 0x433389
lea edx, [ebp - 0x1870]
lea ecx, [ebp - 0x1894]
call fcn.004350b9
mov esi, eax
mov eax, edi
call fcn.00435193
jmp 0x4333cb
cmp dword [0x5500d4], ebx
je 0x4333cb
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x43339d
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1880]
push dword [ebp - 0x1870]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___get_cdn_file_size__win_http_query_headers_failed__ip__s___size__d___index__d___err__d_.
call fcn.0042749e
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403de3
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403de3
push dword [ebp - 0x187c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
cmp dword [ebp - 0x1884], ebx
je 0x4333ff
push dword [ebp - 0x1884]
call esi
cmp dword [ebp - 0x186c], ebx
je 0x43340f
push dword [ebp - 0x186c]
call esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040248a
lea eax, [ebp - 0x1874]
call fcn.0043521c
mov ecx, dword [ebp - 0x1874]
cmp dword [ebp - 0x18a0], ecx
jne 0x43308e
cmp dword [0x5500d4], ebx
je 0x433463
push dword [ebp - 0x188c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___get_cdn_file_size__content_size_count__d_
call fcn.0042749e
add esp, 0xc
mov ecx, dword [ebp - 0x1890]
mov eax, dword [ecx]
xor esi, esi
mov dword [ebp - 0x186c], ebx
mov dword [ebp - 0x1874], eax
cmp ecx, eax
je 0x4334dd
cmp esi, ebx
je 0x43348e
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
sar ecx, 2
cmp esi, ecx
jae 0x4334c4
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
sar esi, 2
mov dword [ebp - 0x186c], eax
cmp dword [0x5500d4], ebx
je 0x4334c4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___get_cdn_file_size__ulfs_max__ld___count__d_
call fcn.0042749e
add esp, 0x10
lea eax, [ebp - 0x1874]
call fcn.004352a3
mov eax, dword [ebp - 0x1874]
cmp dword [ebp - 0x1890], eax
jne 0x43347d
lea eax, [ebp - 0x1894]
push eax
mov byte [ebp - 4], bl
call fcn.0043514d
lea edi, [ebp - 0x18a4]
mov dword [ebp - 4], 5
call fcn.00435069
push dword [ebp - 0x18a0]
call fcn.004d57d0
mov eax, dword [ebp - 0x186c]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d57db
leave
ret