Function at 0x4280e0
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 0x5836f0
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 0x42812a
mov dword [edi + 0x8c], 3
xor al, al
jmp 0x42894e
push eax
lea ecx, [ebp - 0xc58]
call fcn.00428970
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc58]
cmp dword [ebp - 0xc44], 8
push 0x5bb0b0
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ed26
add esp, 8
test eax, eax
jne 0x42816f
mov eax, 0x5bb0b0
mov ecx, 3
jmp 0x4281d5
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push str.POST
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ed26
add esp, 8
test eax, eax
jne 0x4281a1
mov eax, str.POST
mov ecx, 4
jmp 0x4281d5
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push str.PATCH
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0055ed26
add esp, 8
test eax, eax
jne 0x428934
mov eax, str.PATCH
mov ecx, 5
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.00425790
cmp dword [edi], 0
mov bl, 1
jne 0x42821a
cmp dword [edi + 0xbc], 8
lea eax, [edi + 0xa8]
jb 0x4281fa
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 0x42821a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x428939
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 0x42829f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
mov dword [ebp - 0xc68], eax
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4282ce
lea eax, [ebp - 0xc68]
mov edx, str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_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.00428a80
add esp, 0x10
jmp 0x4282ce
push 6
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4282ce
push str.WinHttpSetOption_Succeeded
push 0x19b
push str.McWinHttpClient::SetHttpSecureProtocol
mov edx, str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcCommonMcWinHttpClient.cpp
mov ecx, 6
call fcn.00428ac0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00556180
push 0xa28
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00556180
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 0x42837b
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 0x428941
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 0x428941
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 0x428926
cmp byte [edi + 4], 0
jne 0x42842e
cmp dword [ebp - 0xca8], 2
jne 0x42842e
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 0x428474
cmp dword [edi + 0x88], 8
lea ebx, [edi + 0x74]
mov ecx, ebx
jb 0x428448
mov ecx, dword [ebx]
push 0x1000000
push eax
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x428466
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x8c], eax
push 0
push 0x5bb3b8
mov ecx, ebx
call fcn.00425790
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 0x4288e1
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4288b6
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 0x42851c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42859f
mov eax, dword [ebp - 0xc5c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554193
mov ecx, dword [ebp - 0xc5c]
mov ebx, eax
add ecx, ecx
push ecx
push 0
push ebx
call fcn.00556180
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 0x428590
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 0x428576
sub edx, dword [ebp - 0xc64]
sar edx, 1
push edx
push ebx
call fcn.00425790
push ebx
call fcn.00469710
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 0x4285ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x428645
mov eax, dword [ebp - 0xc5c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554193
mov ecx, dword [ebp - 0xc5c]
mov ebx, eax
add ecx, ecx
push ecx
push 0
push ebx
call fcn.00556180
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 0x42863c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428620
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x90]
call fcn.00425790
push ebx
call fcn.00469710
add esp, 4
mov eax, dword [edi + 0x68]
mov ecx, 0x2800
xor ebx, ebx
mov dword [ebp - 0xc64], ecx
test eax, eax
je 0x428665
push eax
call fcn.00469710
add esp, 4
mov dword [edi + 0x68], ebx
push 0x2800
call fcn.00554193
push 0x2800
push 0
push eax
mov dword [edi + 0x68], eax
call fcn.00556180
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 0x42877d
mov eax, dword [ebp - 0xc5c]
inc eax
push eax
call fcn.00554193
mov ecx, dword [ebp - 0xc5c]
mov esi, eax
inc ecx
mov dword [ebp - 0xc70], esi
push ecx
push 0
push esi
call fcn.00556180
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 0x42876c
mov edx, dword [ebp - 0xc60]
mov ecx, dword [ebp - 0xc64]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x428757
mov esi, dword [edi + 0x68]
add ecx, ecx
push ecx
mov dword [ebp - 0xc64], ecx
call fcn.00554193
mov ecx, dword [ebp - 0xc64]
push ecx
push 0
push eax
mov dword [edi + 0x68], eax
call fcn.00556180
mov ecx, dword [edi + 0x68]
mov edx, ebx
push ebx
push esi
call fcn.00428c00
push esi
call fcn.00469710
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.00428c00
add esp, 8
add ebx, dword [ebp - 0xc60]
push esi
call fcn.00469710
mov esi, dword [ebp - 0xc6c]
add esp, 4
jmp 0x428789
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x8c], eax
cmp dword [ebp - 0xc5c], 0
ja 0x428690
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 0x4287b6
mov eax, dword [eax]
push 5
push str.utf_8
push eax
call fcn.0055ee76
add esp, 0xc
test eax, eax
jne 0x4287db
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 0x42882e
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 0x4288a8
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554193
lea ecx, [ebx + ebx]
mov dword [ebp - 0xc70], eax
push ecx
push 0
push eax
call fcn.00556180
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 0x42889f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428886
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x38]
call fcn.00425790
push ebx
call fcn.00469710
add esp, 4
mov bl, 1
mov dword [edi + 0x8c], 0
jmp 0x42891f
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xc68]
push 6
mov dword [edi], eax
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x42891f
push edi
push str.Failed_in_WinHttpReceiveResponse_with_error__ld
push 0x15b
jmp 0x428908
mov edi, dword [ebp - 0xc68]
xor bl, bl
push 6
mov dword [edi], 0x32
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x42891f
push edi
push str.Failed_in_WinHttpSendRequest_with_error__ld
push 0x162
push str.McWinHttpClient::SendHttpRequest
mov edx, str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcCommonMcWinHttpClient.cpp
mov ecx, 6
call fcn.00428a80
add esp, 0x10
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0xc78]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x428941
mov eax, 0x57
mov dword [edi + 0x8c], eax
xor bl, bl
lea ecx, [ebp - 0xc58]
call fcn.00425730
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.00553cca
mov esp, ebp
pop ebp
ret 4