Function at 0x428160
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 0x583bb0
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x61094c]
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 edi, ecx
cmp dword [edi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x4281aa
mov dword [edi + 0x8c], 3
xor al, al
jmp 0x4289ce
push eax
lea ecx, [ebp - 0xc58]
call fcn.004289f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc58]
cmp dword [ebp - 0xc44], 8
push 0x5bb110
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ee16
add esp, 8
test eax, eax
jne 0x4281ef
mov eax, 0x5bb110
mov ecx, 3
jmp 0x428255
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push str.POST
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ee16
add esp, 8
test eax, eax
jne 0x428221
mov eax, str.POST
mov ecx, 4
jmp 0x428255
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push str.PATCH
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ee16
add esp, 8
test eax, eax
jne 0x4289b4
mov eax, str.PATCH
mov ecx, 5
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.00425810
cmp dword [edi], 0
mov bl, 1
jne 0x42829a
cmp dword [edi + 0xbc], 8
lea eax, [edi + 0xa8]
jb 0x42827a
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
test eax, eax
jne 0x42829a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4289b9
push dword [edi + 0xcc]
push dword [edi + 0xc8]
push dword [edi + 0xc4]
push dword [edi + 0xc0]
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0xaa0
push eax
push 0x54
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x42831f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
mov dword [ebp - 0xc68], eax
call fcn.004dec10
add esp, 4
test eax, eax
je 0x42834e
lea eax, [ebp - 0xc68]
mov edx, str.E:BT35d5b808_a97e_445c_95cc_a112af3c9a8dFreetools_srcCommonMcWinHttpClient.cpp
push eax
push str.Failed_In_WinHttpSetOption_for_WINHTTP_OPTION_SECURE_PROTOCOLS_with_error__ld
push 0x198
push str.McWinHttpClient::SetHttpSecureProtocol
mov ecx, 6
call fcn.00428b00
add esp, 0x10
jmp 0x42834e
push 6
call fcn.004dec10
add esp, 4
test eax, eax
je 0x42834e
push str.WinHttpSetOption_Succeeded
push 0x19b
push str.McWinHttpClient::SetHttpSecureProtocol
mov edx, str.E:BT35d5b808_a97e_445c_95cc_a112af3c9a8dFreetools_srcCommonMcWinHttpClient.cpp
mov ecx, 6
call fcn.00428b40
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00556260
push 0xa28
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00556260
lea eax, [ebp - 0x218]
mov dword [ebp - 0xcb0], 0
mov dword [ebp - 0xca4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xca8], 0
mov dword [ebp - 0xc88], eax
add esp, 0x18
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
movlpd qword [ebp - 0xc9c], xmm0
movlpd qword [ebp - 0xc94], xmm0
mov dword [ebp - 0xc8c], 0
movlpd qword [ebp - 0xc80], xmm0
mov dword [ebp - 0xcb4], 0x3c
mov dword [ebp - 0xca0], 0x104
mov dword [ebp - 0xc84], 0x514
mov dword [ebp - 0xcac], 1
jb 0x4283fb
mov eax, dword [eax]
lea ecx, [ebp - 0xcb4]
push ecx
push 0
push dword [edi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4289c1
push 0
push 0x1bb
push dword [ebp - 0xca4]
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xc78], eax
test eax, eax
je 0x4289c1
xor ecx, ecx
mov edx, 0x800000
cmp dword [ebp - 0xca8], 2
cmove ecx, edx
cmp dword [ebp - 0xc44], 8
push ecx
push 0
push 0
push 0
push dword [ebp - 0xc88]
lea edx, [ebp - 0xc58]
cmovae edx, dword [ebp - 0xc58]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xc6c], esi
test esi, esi
je 0x4289a6
cmp byte [edi + 4], 0
jne 0x4284ae
cmp dword [ebp - 0xca8], 2
jne 0x4284ae
push 4
lea eax, [ebp - 0xc68]
mov dword [ebp - 0xc68], 0x3100
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4284f4
cmp dword [edi + 0x88], 8
lea ebx, [edi + 0x74]
mov ecx, ebx
jb 0x4284c8
mov ecx, dword [ebx]
push 0x1000000
push eax
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4284e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x8c], eax
push 0
push 0x5bb418
mov ecx, ebx
call fcn.00425810
push 0
push dword [edi + 0x70]
lea eax, [edi + 0x8c]
push 0
push 0
push 0
push 0
push esi
mov dword [ebp - 0xc68], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x428961
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x428936
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0xc74]
push 0
push eax
lea eax, [ebp - 0xc68]
mov dword [ebp - 0xc68], 0
push eax
push 0
push 0x20000013
push esi
mov dword [ebp - 0xc74], 4
call ebx
mov eax, dword [ebp - 0xc68]
push 0
mov dword [edi + 0x8c], eax
lea eax, [ebp - 0xc5c]
push eax
push 0
push 0
push 0x16
push esi
mov dword [ebp - 0xc5c], 0
call ebx
test eax, eax
jne 0x42859c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42861f
mov eax, dword [ebp - 0xc5c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554273
mov ecx, dword [ebp - 0xc5c]
mov ebx, eax
add ecx, ecx
push ecx
push 0
push ebx
call fcn.00556260
add esp, 0x10
lea eax, [ebp - 0xc5c]
push 0
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push 0
push 0x16
push esi
call eax
test eax, eax
je 0x428610
mov edx, ebx
lea ecx, [edi + 0x20]
lea eax, [edx + 2]
mov dword [ebp - 0xc64], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4285f6
sub edx, dword [ebp - 0xc64]
sar edx, 1
push edx
push ebx
call fcn.00425810
push ebx
call fcn.004697f0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
add esp, 4
push 0
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0
push eax
push 0
push 0
push 0x13
push esi
call ebx
test eax, eax
jne 0x42864a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4286c5
mov eax, dword [ebp - 0xc5c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554273
mov ecx, dword [ebp - 0xc5c]
mov ebx, eax
add ecx, ecx
push ecx
push 0
push ebx
call fcn.00556260
add esp, 0x10
lea eax, [ebp - 0xc5c]
push 0
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push 0
push 0x13
push esi
call eax
test eax, eax
je 0x4286bc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4286a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x90]
call fcn.00425810
push ebx
call fcn.004697f0
add esp, 4
mov eax, dword [edi + 0x68]
mov ecx, 0x2800
xor ebx, ebx
mov dword [ebp - 0xc64], ecx
test eax, eax
je 0x4286e5
push eax
call fcn.004697f0
add esp, 4
mov dword [edi + 0x68], ebx
push 0x2800
call fcn.00554273
push 0x2800
push 0
push eax
mov dword [edi + 0x68], eax
call fcn.00556260
add esp, 0x10
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4287fd
mov eax, dword [ebp - 0xc5c]
inc eax
push eax
call fcn.00554273
mov ecx, dword [ebp - 0xc5c]
mov esi, eax
inc ecx
mov dword [ebp - 0xc70], esi
push ecx
push 0
push esi
call fcn.00556260
add esp, 0x10
mov dword [ebp - 0xc60], 0
lea eax, [ebp - 0xc60]
push eax
push dword [ebp - 0xc5c]
push esi
push dword [ebp - 0xc6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4287ec
mov edx, dword [ebp - 0xc60]
mov ecx, dword [ebp - 0xc64]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4287d7
mov esi, dword [edi + 0x68]
add ecx, ecx
push ecx
mov dword [ebp - 0xc64], ecx
call fcn.00554273
mov ecx, dword [ebp - 0xc64]
push ecx
push 0
push eax
mov dword [edi + 0x68], eax
call fcn.00556260
mov ecx, dword [edi + 0x68]
mov edx, ebx
push ebx
push esi
call fcn.00428c80
push esi
call fcn.004697f0
mov edx, dword [ebp - 0xc60]
add esp, 0x1c
mov esi, dword [ebp - 0xc70]
mov ecx, dword [edi + 0x68]
push edx
push esi
add ecx, ebx
call fcn.00428c80
add esp, 8
add ebx, dword [ebp - 0xc60]
push esi
call fcn.004697f0
mov esi, dword [ebp - 0xc6c]
add esp, 4
jmp 0x428809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x8c], eax
cmp dword [ebp - 0xc5c], 0
ja 0x428710
mov dword [edi + 0x6c], ebx
lea eax, [edi + 0x50]
xor ebx, ebx
mov dword [ebp - 0xc60], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xc64], ebx
jb 0x428836
mov eax, dword [eax]
push 5
push str.utf_8
push eax
call fcn.0055ef66
add esp, 0xc
test eax, eax
jne 0x42885b
mov ebx, 0xfde9
mov dword [ebp - 0xc60], eax
mov dword [ebp - 0xc64], ebx
mov eax, dword [edi + 0x6c]
push 0
push 0
inc eax
push eax
push dword [edi + 0x68]
push dword [ebp - 0xc60]
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jg 0x4288ae
mov eax, dword [edi + 0x6c]
push 0
push 0
inc eax
mov dword [ebp - 0xc64], 0
push eax
push dword [edi + 0x68]
mov dword [ebp - 0xc60], 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x428928
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554273
lea ecx, [ebx + ebx]
mov dword [ebp - 0xc70], eax
push ecx
push 0
push eax
call fcn.00556260
mov ecx, dword [edi + 0x6c]
add esp, 0x10
inc ecx
push ebx
mov ebx, dword [ebp - 0xc70]
push ebx
push ecx
push dword [edi + 0x68]
push dword [ebp - 0xc60]
push dword [ebp - 0xc64]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x42891f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428906
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x38]
call fcn.00425810
push ebx
call fcn.004697f0
add esp, 4
mov bl, 1
mov dword [edi + 0x8c], 0
jmp 0x42899f
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xc68]
push 6
mov dword [edi], eax
call fcn.004dec10
add esp, 4
test eax, eax
je 0x42899f
push edi
push str.Failed_in_WinHttpReceiveResponse_with_error__ld
push 0x15b
jmp 0x428988
mov edi, dword [ebp - 0xc68]
xor bl, bl
push 6
mov dword [edi], 0x32
call fcn.004dec10
add esp, 4
test eax, eax
je 0x42899f
push edi
push str.Failed_in_WinHttpSendRequest_with_error__ld
push 0x162
push str.McWinHttpClient::SendHttpRequest
mov edx, str.E:BT35d5b808_a97e_445c_95cc_a112af3c9a8dFreetools_srcCommonMcWinHttpClient.cpp
mov ecx, 6
call fcn.00428b00
add esp, 0x10
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0xc78]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4289c1
mov eax, 0x57
mov dword [edi + 0x8c], eax
xor bl, bl
lea ecx, [ebp - 0xc58]
call fcn.004257b0
mov al, bl
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.00553daa
mov esp, ebp
pop ebp
ret 4