Function at 0x40e0b0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x43e258
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x18], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
je 0x40e331
cmp dword [esp + 0x34], edi
je 0x40e331
cmp dword [esp + 0x38], edi
je 0x40e331
cmp dword [esp + 0x3c], edi
je 0x40e331
cmp dword [ebp], edi
je 0x40e32a
cmp dword [ebp + 4], edi
je 0x40e32a
mov eax, dword [esp + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x40e147
sub eax, 1
jne 0x40e255
mov eax, ebp
call fcn.0040def0
mov dword [esp + 0x18], 2
jmp 0x40e14f
mov dword [esp + 0x18], 1
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40e160
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 4]
push 0x100
push ebx
push ebx
push ebx
push esi
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40e19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpOpenRequest__FILE___s__ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
add esp, 0xc
jmp 0x40e123
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40e1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpSendRequest__FILE___s__ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
add esp, 0xc
jmp 0x40e123
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40e1f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpReceiveResponse__FILE___s__ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
add esp, 0xc
jmp 0x40e123
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ebx
call fcn.0040edb0
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x10], edi
jne 0x40e225
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpQueryHeaders__during_query_status_code.__FILE___s__ERROR_CODE___d
jmp 0x40e23b
mov eax, 0x51eb851f
mul edi
shr edx, 5
cmp edx, 2
je 0x40e28a
push edi
push esi
push str._CHTTPRequest___GetDownloadFileInfo__header_return_error_during_query_status_code___FILE___s__ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
add esp, 0xc
mov dword [esp + 0x24], 0xffffffff
jmp 0x40e123
push str._CHTTPRequest___GetDownloadFileInfo__retry_time_exceed
mov ebx, 4
call fcn.004156d0
mov eax, 0x51eb851f
mul edi
shr edx, 5
add esp, 4
cmp edx, ebx
jne 0x40e27c
mov eax, edi
jmp 0x40e345
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
jmp 0x40e343
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
call fcn.0040ef00
test eax, eax
jne 0x40e2c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpQueryHeaders_during_query_status_code.__FILE___s__ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea esi, [esp + 0x2c]
call fcn.0040ee20
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, esi
push eax
lea edi, [esp + 0x3c]
mov dword [ecx + 4], edx
call fcn.0040ef90
mov esi, edi
call fcn.00406de0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
and ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x40e323
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp + 0x14], eax
call esi
mov edx, dword [esp + 0x30]
push eax
push edx
push str._CHTTPRequest___GetDownloadFileInfo__error_happen_in_WinHttpQueryHeaders_during_query_status_code.__FILE___s__ERROR_CODE__d
mov ebx, 4
call fcn.004156d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x40e345
mov eax, 1
jmp 0x40e345
push str._CHTTPRequest___GetDownloadFileInfo__invalid_handle
jmp 0x40e336
push str._CHTTPRequest___GetDownloadFileInfo__Invalid_param
mov ebx, 4
call fcn.004156d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14