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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517d80
mov eax, dword fs:[0]
push eax
mov eax, 0x255c
call fcn.00472920
mov eax, dword [0x56d06c]
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, edx
mov dword [ebp - 0x251c], edi
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x455f68
lea eax, [edi + 0xc]
mov dword [ebp - 0x2520], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], 0
test ecx, ecx
je 0x455f62
mov edx, dword [ecx]
push eax
push 1
push 0
push dword [edi + 8]
call dword [edx]
push 0
call ebx
jmp 0x455fa8
mov eax, dword [0x586da8]
test al, 1
jne 0x455f9e
or eax, 1
mov dword [0x586da8], eax
mov ecx, 0x586db0
mov dword [ebp - 4], 0
call fcn.00452ae0
push 0x51af00
call fcn.00471b28
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2520], 0x586db0
lea ecx, [ebp - 0x2508]
call fcn.00455cf0
push 4
push dword [0x55bf98]
mov eax, 0x50
mov dword [ebp - 0xb8], 2
mov word [ebp - 0xbc], ax
mov eax, ecx
push 0x21
push eax
mov dword [ebp - 0xb4], 4
call fcn.004ed099
push eax
call fcn.0041c4a0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x455ff6
mov esi, dword [esi]
lea ecx, [ebp - 0x2508]
call fcn.00455cf0
push esi
call fcn.00455710
mov esi, eax
test edi, edi
je 0x456033
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], 1
test ecx, ecx
je 0x45602f
mov edx, dword [ecx]
push eax
push esi
push 1
push dword [edi + 8]
call dword [edx]
push 0
call ebx
test esi, esi
je 0x45637a
lea eax, [ebp - 0x24c6]
push eax
lea ecx, [ebp - 0x98]
call fcn.00419a80
lea eax, [ebp - 0x20c0]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x80]
call fcn.00419a80
mov byte [ebp - 4], 2
cmp word [ebp - 0x10be], 0
jne 0x456075
xor ecx, ecx
jmp 0x45608f
lea ecx, [ebp - 0x10be]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456080
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x10be]
push eax
lea ecx, [ebp - 0x80]
call fcn.00419d60
movzx esi, word [ebp - 0xbc]
xor eax, eax
cmp dword [ebp - 0xb8], 3
push 0
push 0
sete al
push 0
shl eax, 0x17
push 0
add eax, 0x100
push str.QQBrowser
mov dword [ebp - 0x2524], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x2560], ebx
xor eax, eax
mov byte [ebp - 4], 3
test ebx, ebx
setne al
mov dword [ebp - 0x250c], eax
test edi, edi
je 0x456125
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], 2
test ecx, ecx
je 0x456117
mov edx, dword [ecx]
push eax
push dword [ebp - 0x250c]
push 2
push dword [edi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x250c]
test eax, eax
jne 0x456152
test ebx, ebx
je 0x456134
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x80]
call fcn.0041e2c0
lea ecx, [ebp - 0x98]
call fcn.0041e2c0
mov eax, dword [ebp - 0x250c]
jmp 0x456ad9
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0
cmovae eax, dword [ebp - 0x98]
push esi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x2534], esi
xor eax, eax
mov byte [ebp - 4], 4
test esi, esi
setne al
mov dword [ebp - 0x250c], eax
test edi, edi
je 0x4561c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], 3
test ecx, ecx
je 0x4561b5
mov edx, dword [ecx]
push eax
push dword [ebp - 0x250c]
push 3
push dword [edi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x250c]
test eax, eax
jne 0x4561e4
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x4561d4
push esi
call edi
test ebx, ebx
je 0x456134
push ebx
call edi
jmp 0x456134
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x2520]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
mov eax, dword [eax + 0x44]
sub eax, 0
je 0x456225
sub eax, 1
je 0x45621e
sub eax, 1
jne 0x456225
push 0x55c054
jmp 0x45622a
push str.POST
jmp 0x45622a
push 0x55c040
call fcn.004199e0
push dword [ebp - 0x2524]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
push 0
cmovae ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
push 0
cmovae eax, dword [ebp - 0x68]
push str.HTTP_1.1
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x2564], edi
xor eax, eax
mov byte [ebp - 4], 6
test edi, edi
setne al
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x250c], eax
je 0x45629f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x250c]
push 4
call fcn.00455ea0
mov eax, dword [ebp - 0x250c]
test eax, eax
jne 0x4562db
test edi, edi
je 0x4562ae
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.0041e2c0
test esi, esi
je 0x4562c5
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x4562cb
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x456134
push ebx
call esi
jmp 0x456134
mov ecx, dword [ebp - 0x2520]
cmp dword [ecx + 0x1c], 0
je 0x456387
cmp dword [ecx + 0x20], 8
lea eax, [ecx + 0xc]
jb 0x4562f6
mov eax, dword [eax]
push 0x20000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x2510], eax
je 0x456334
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 5
call fcn.00455ea0
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x456381
test edi, edi
je 0x456343
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.0041e2c0
test esi, esi
je 0x45635a
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x456360
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x456367
push ebx
call esi
lea ecx, [ebp - 0x80]
call fcn.0041e2c0
lea ecx, [ebp - 0x98]
call fcn.0041e2c0
xor eax, eax
jmp 0x456ad9
mov ecx, dword [ebp - 0x2520]
xor eax, eax
cmp dword [ecx + 0x44], 1
mov dword [ebp - 0x250c], eax
jne 0x45639e
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x250c], eax
push 0
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x2510], eax
je 0x4563df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 6
call fcn.00455ea0
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x456338
mov eax, dword [ebp - 0x2520]
cmp dword [eax + 0x44], 1
jne 0x45645a
cmp dword [eax + 0x34], 0
je 0x45645a
add eax, 0x24
mov dword [ebp - 0x2524], 0
cmp dword [eax + 0x14], 0x10
jb 0x45640e
mov eax, dword [eax]
lea ecx, [ebp - 0x2524]
push ecx
push dword [ebp - 0x250c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x2510], eax
je 0x456452
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 7
call fcn.00455ea0
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x456338
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x2510], eax
je 0x456492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 8
call fcn.00455ea0
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x456338
xor eax, eax
mov dword [ebp - 0x2538], 0
mov dword [ebp - 0x2528], eax
mov dword [ebp - 0x255c], eax
mov dword [ebp - 0x2558], eax
mov dword [ebp - 0x252c], eax
mov dword [ebp - 0x2554], eax
mov eax, dword [ebp - 0x2520]
mov byte [ebp - 4], 7
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x2524], eax
mov esi, dword [eax]
cmp esi, eax
je 0x4565e5
nop word [eax + eax]
lea eax, [esi + 0x10]
mov dword [ebp - 0x2538], 0x64
cmp dword [eax + 0x14], 8
jb 0x456505
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x2538]
push edx
push 0
push eax
push 0xffff
push edi
call ecx
mov eax, dword [ebp - 0x2538]
test eax, eax
je 0x456581
lea ecx, [ebp - 0x2511]
mov byte [ebp - 0x2511], 0
push ecx
add eax, 2
lea ecx, [ebp - 0x255c]
push eax
call fcn.00439985
cmp dword [esi + 0x24], 8
jb 0x45654b
mov ecx, dword [esi + 0x10]
jmp 0x45654e
lea ecx, [esi + 0x10]
push 0
lea eax, [ebp - 0x2538]
push eax
mov eax, dword [ebp - 0x255c]
push eax
push ecx
push 0xffff
mov dword [ebp - 0x2528], eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
call eax
mov eax, dword [ebp - 0x2528]
lea ecx, [esi + 0x28]
push eax
call fcn.004199e0
cmp byte [esi + 0xd], 0
jne 0x4565c7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4565ac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4565c7
nop word [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4565a0
jmp 0x4565c7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4565c5
cmp esi, dword [eax + 8]
jne 0x4565c5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4565b5
mov esi, eax
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, dword [ebp - 0x2524]
jne 0x4564f0
mov eax, dword [ebp - 0x2554]
mov dword [ebp - 0x252c], eax
mov eax, dword [ebp - 0x2520]
lea edx, [ebp - 0x2548]
push edx
lea edx, [ebp - 0x254c]
mov dword [ebp - 0x2548], 0
push edx
add eax, 4
mov dword [ebp - 0x254c], 4
push eax
push 0
push 0x20000005
mov dword [eax], 0
push edi
call ecx
mov esi, dword [ebp - 0x251c]
mov dword [ebp - 0x2510], eax
test esi, esi
je 0x45664d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2510]
mov ecx, esi
push 9
call fcn.00455ea0
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x4566cc
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x4566a1
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x456698
test al, 0x1f
je 0x456674
call fcn.004ecf7c
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x456680
call fcn.004ecf7c
sub eax, ecx
cmp eax, 4
jae 0x45668c
call fcn.004ecf7c
cmp eax, 0x23
jbe 0x456696
call fcn.004ecf7c
mov eax, ecx
push eax
call fcn.004ed0af
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4566ae
push edi
call esi
lea ecx, [ebp - 0x68]
call fcn.0041e2c0
mov eax, dword [ebp - 0x2534]
test eax, eax
je 0x456360
push eax
call esi
jmp 0x456360
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e9ab0
add esp, 0xc
mov dword [ebp - 0x2550], 0x40
lea eax, [ebp - 0x2550]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 0x13
push edi
call eax
mov dword [ebp - 0x250c], eax
test esi, esi
je 0x456725
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x250c]
mov ecx, esi
push 9
call fcn.00455ea0
mov eax, dword [ebp - 0x250c]
test eax, eax
je 0x456651
lea eax, [ebp - 0x50]
push eax
call fcn.004ee70d
mov ecx, dword [ebp - 0x2520]
add esp, 4
cmp dword [ecx], 0
mov dword [ecx + 8], eax
je 0x4567c5
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x456793
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x45678a
test al, 0x1f
jne 0x45666f
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x45666f
sub eax, ecx
cmp eax, 4
jb 0x45666f
cmp eax, 0x23
ja 0x45666f
mov eax, ecx
push eax
call fcn.004ed0af
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4567a0
push edi
call esi
lea ecx, [ebp - 0x68]
call fcn.0041e2c0
mov eax, dword [ebp - 0x2534]
test eax, eax
je 0x4567b5
push eax
call esi
test ebx, ebx
je 0x456134
push ebx
call esi
jmp 0x456134
test esi, esi
je 0x4567d2
mov eax, dword [esi]
push dword [ecx + 4]
mov ecx, esi
call dword [eax]
xor ecx, ecx
mov dword [ebp - 0x2510], 0
mov dword [ebp - 0x250c], ecx
mov dword [ebp - 0x2544], ecx
mov dword [ebp - 0x2540], ecx
mov dword [ebp - 0x253c], ecx
mov byte [ebp - 4], 8
nop word [eax + eax]
lea eax, [ebp - 0x2530]
mov dword [ebp - 0x2530], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 0x2518], eax
test esi, esi
je 0x45683e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 9
call fcn.00455ea0
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x456977
mov ecx, dword [ebp - 0x2530]
xor eax, eax
cmp eax, ecx
sbb eax, eax
neg eax
mov dword [ebp - 0x2518], eax
test esi, esi
je 0x456880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 0xb
call fcn.00455ea0
mov ecx, dword [ebp - 0x2530]
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x456977
lea eax, [ebp - 0x2511]
mov byte [ebp - 0x2511], 0
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2544]
call fcn.00439985
mov eax, dword [ebp - 0x2540]
mov ecx, dword [ebp - 0x2544]
mov dword [ebp - 0x250c], ecx
sub eax, ecx
je 0x456971
lea eax, [ebp - 0x2524]
mov dword [ebp - 0x2524], 0
push eax
push dword [ebp - 0x2530]
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x2518], eax
test esi, esi
je 0x456904
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 0xc
call fcn.00455ea0
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x456977
test esi, esi
je 0x456935
mov ecx, dword [ebp - 0x2520]
mov eax, dword [esi]
push dword [ecx + 4]
mov ecx, dword [ebp - 0x250c]
push dword [ebp - 0x2524]
push dword [ebp - 0x2510]
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x2518]
mov esi, dword [ebp - 0x2520]
mov edx, dword [ebp - 0x2510]
mov ecx, dword [ebp - 0x2530]
add edx, ecx
mov dword [ebp - 0x2510], edx
cmp dword [esi + 4], edx
mov esi, dword [ebp - 0x251c]
je 0x456964
test ecx, ecx
jne 0x456800
jmp 0x456977
mov eax, 1
mov dword [ebp - 0x2518], eax
jmp 0x456977
mov eax, dword [ebp - 0x2518]
mov ecx, dword [ebp - 0x2520]
test eax, eax
mov edx, dword [esi]
setne al
movzx eax, al
push dword [ecx + 4]
mov ecx, esi
push eax
call dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 0xd
call fcn.00455ea0
mov esi, dword [ebp - 0x2518]
mov ecx, dword [ebp - 0x250c]
test esi, esi
jne 0x456a05
test ecx, ecx
je 0x456651
mov eax, dword [ebp - 0x253c]
sub eax, ecx
cmp eax, 0x1000
jb 0x4569f7
test cl, 0x1f
jne 0x45666f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x45666f
sub ecx, eax
cmp ecx, 4
jb 0x45666f
cmp ecx, 0x23
ja 0x45666f
mov ecx, eax
push ecx
call fcn.004ed0af
add esp, 4
jmp 0x456651
test ecx, ecx
je 0x456a4b
mov eax, dword [ebp - 0x253c]
sub eax, ecx
cmp eax, 0x1000
jb 0x456a42
test cl, 0x1f
jne 0x45666f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x45666f
sub ecx, eax
cmp ecx, 4
jb 0x45666f
cmp ecx, 0x23
ja 0x45666f
mov ecx, eax
push ecx
call fcn.004ed0af
add esp, 4
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x456a97
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x456a8e
test al, 0x1f
jne 0x45666f
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x45666f
sub eax, ecx
cmp eax, 4
jb 0x45666f
cmp eax, 0x23
ja 0x45666f
mov eax, ecx
push eax
call fcn.004ed0af
add esp, 4
test edi, edi
je 0x456aa2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.0041e2c0
mov eax, dword [ebp - 0x2534]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x456abd
push eax
call edi
test ebx, ebx
je 0x456ac4
push ebx
call edi
lea ecx, [ebp - 0x80]
call fcn.0041e2c0
lea ecx, [ebp - 0x98]
call fcn.0041e2c0
mov eax, esi
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.00471876
mov esp, ebp
pop ebp
ret