Function at 0x44a980
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 0x4f3780
mov eax, dword fs:[0]
push eax
mov eax, 0x255c
call fcn.00466690
mov eax, dword [0x54006c]
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 0x44a9f8
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 0x44a9f2
mov edx, dword [ecx]
push eax
push 1
push 0
push dword [edi + 8]
call dword [edx]
push 0
call ebx
jmp 0x44aa38
mov eax, dword [0x556980]
test al, 1
jne 0x44aa2e
or eax, 1
mov dword [0x556980], eax
mov ecx, 0x556988
mov dword [ebp - 4], 0
call fcn.00447500
push 0x4f5950
call fcn.00465946
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2520], 0x556988
lea ecx, [ebp - 0x2508]
call fcn.0044a760
push 4
push dword [0x532b68]
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.004caafe
push eax
call fcn.00417750
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x44aa86
mov esi, dword [esi]
lea ecx, [ebp - 0x2508]
call fcn.0044a760
push esi
call fcn.0044a180
mov esi, eax
test edi, edi
je 0x44aac3
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 0x44aabf
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 0x44ae0a
lea eax, [ebp - 0x24c6]
push eax
lea ecx, [ebp - 0x98]
call fcn.004146c0
lea eax, [ebp - 0x20c0]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x80]
call fcn.004146c0
mov byte [ebp - 4], 2
cmp word [ebp - 0x10be], 0
jne 0x44ab05
xor ecx, ecx
jmp 0x44ab1f
lea ecx, [ebp - 0x10be]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ab10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x10be]
push eax
lea ecx, [ebp - 0x80]
call fcn.00414940
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 0x44abb5
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 0x44aba7
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 0x44abe2
test ebx, ebx
je 0x44abc4
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x80]
call fcn.00418e80
lea ecx, [ebp - 0x98]
call fcn.00418e80
mov eax, dword [ebp - 0x250c]
jmp 0x44b569
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 0x44ac53
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 0x44ac45
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 0x44ac74
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x44ac64
push esi
call edi
test ebx, ebx
je 0x44abc4
push ebx
call edi
jmp 0x44abc4
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 0x44acb5
sub eax, 1
je 0x44acae
sub eax, 1
jne 0x44acb5
push 0x532b34
jmp 0x44acba
push str.POST
jmp 0x44acba
push 0x532b20
call fcn.00414670
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 0x44ad2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x250c]
push 4
call fcn.0044a930
mov eax, dword [ebp - 0x250c]
test eax, eax
jne 0x44ad6b
test edi, edi
je 0x44ad3e
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.00418e80
test esi, esi
je 0x44ad55
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x44ad5b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x44abc4
push ebx
call esi
jmp 0x44abc4
mov ecx, dword [ebp - 0x2520]
cmp dword [ecx + 0x1c], 0
je 0x44ae17
cmp dword [ecx + 0x20], 8
lea eax, [ecx + 0xc]
jb 0x44ad86
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 0x44adc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 5
call fcn.0044a930
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x44ae11
test edi, edi
je 0x44add3
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.00418e80
test esi, esi
je 0x44adea
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x44adf0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x44adf7
push ebx
call esi
lea ecx, [ebp - 0x80]
call fcn.00418e80
lea ecx, [ebp - 0x98]
call fcn.00418e80
xor eax, eax
jmp 0x44b569
mov ecx, dword [ebp - 0x2520]
xor eax, eax
cmp dword [ecx + 0x44], 1
mov dword [ebp - 0x250c], eax
jne 0x44ae2e
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 0x44ae6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 6
call fcn.0044a930
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x44adc8
mov eax, dword [ebp - 0x2520]
cmp dword [eax + 0x44], 1
jne 0x44aeea
cmp dword [eax + 0x34], 0
je 0x44aeea
add eax, 0x24
mov dword [ebp - 0x2524], 0
cmp dword [eax + 0x14], 0x10
jb 0x44ae9e
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 0x44aee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 7
call fcn.0044a930
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x44adc8
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp dword [ebp - 0x251c], 0
mov dword [ebp - 0x2510], eax
je 0x44af22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x251c]
push eax
push dword [ebp - 0x2510]
push 8
call fcn.0044a930
mov eax, dword [ebp - 0x2510]
test eax, eax
je 0x44adc8
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 0x44b075
nop word [eax + eax]
lea eax, [esi + 0x10]
mov dword [ebp - 0x2538], 0x64
cmp dword [eax + 0x14], 8
jb 0x44af95
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 0x44b011
lea ecx, [ebp - 0x2511]
mov byte [ebp - 0x2511], 0
push ecx
add eax, 2
lea ecx, [ebp - 0x255c]
push eax
call fcn.0042dfd3
cmp dword [esi + 0x24], 8
jb 0x44afdb
mov ecx, dword [esi + 0x10]
jmp 0x44afde
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.00414670
cmp byte [esi + 0xd], 0
jne 0x44b057
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x44b03c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x44b057
nop word [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x44b030
jmp 0x44b057
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x44b055
cmp esi, dword [eax + 8]
jne 0x44b055
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x44b045
mov esi, eax
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, dword [ebp - 0x2524]
jne 0x44af80
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 0x44b0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2510]
mov ecx, esi
push 9
call fcn.0044a930
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x44b15c
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x44b131
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x44b128
test al, 0x1f
je 0x44b104
call fcn.004ca9e1
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x44b110
call fcn.004ca9e1
sub eax, ecx
cmp eax, 4
jae 0x44b11c
call fcn.004ca9e1
cmp eax, 0x23
jbe 0x44b126
call fcn.004ca9e1
mov eax, ecx
push eax
call fcn.004cab14
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x44b13e
push edi
call esi
lea ecx, [ebp - 0x68]
call fcn.00418e80
mov eax, dword [ebp - 0x2534]
test eax, eax
je 0x44adf0
push eax
call esi
jmp 0x44adf0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004c7830
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 0x44b1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x250c]
mov ecx, esi
push 9
call fcn.0044a930
mov eax, dword [ebp - 0x250c]
test eax, eax
je 0x44b0e1
lea eax, [ebp - 0x50]
push eax
call fcn.004cc13b
mov ecx, dword [ebp - 0x2520]
add esp, 4
cmp dword [ecx], 0
mov dword [ecx + 8], eax
je 0x44b255
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x44b223
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x44b21a
test al, 0x1f
jne 0x44b0ff
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x44b0ff
sub eax, ecx
cmp eax, 4
jb 0x44b0ff
cmp eax, 0x23
ja 0x44b0ff
mov eax, ecx
push eax
call fcn.004cab14
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x44b230
push edi
call esi
lea ecx, [ebp - 0x68]
call fcn.00418e80
mov eax, dword [ebp - 0x2534]
test eax, eax
je 0x44b245
push eax
call esi
test ebx, ebx
je 0x44abc4
push ebx
call esi
jmp 0x44abc4
test esi, esi
je 0x44b262
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 0x44b2ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 9
call fcn.0044a930
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x44b407
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 0x44b310
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 0xb
call fcn.0044a930
mov ecx, dword [ebp - 0x2530]
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x44b407
lea eax, [ebp - 0x2511]
mov byte [ebp - 0x2511], 0
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2544]
call fcn.0042dfd3
mov eax, dword [ebp - 0x2540]
mov ecx, dword [ebp - 0x2544]
mov dword [ebp - 0x250c], ecx
sub eax, ecx
je 0x44b401
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 0x44b394
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2518]
mov ecx, esi
push 0xc
call fcn.0044a930
mov eax, dword [ebp - 0x2518]
test eax, eax
je 0x44b407
test esi, esi
je 0x44b3c5
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 0x44b3f4
test ecx, ecx
jne 0x44b290
jmp 0x44b407
mov eax, 1
mov dword [ebp - 0x2518], eax
jmp 0x44b407
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.0044a930
mov esi, dword [ebp - 0x2518]
mov ecx, dword [ebp - 0x250c]
test esi, esi
jne 0x44b495
test ecx, ecx
je 0x44b0e1
mov eax, dword [ebp - 0x253c]
sub eax, ecx
cmp eax, 0x1000
jb 0x44b487
test cl, 0x1f
jne 0x44b0ff
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44b0ff
sub ecx, eax
cmp ecx, 4
jb 0x44b0ff
cmp ecx, 0x23
ja 0x44b0ff
mov ecx, eax
push ecx
call fcn.004cab14
add esp, 4
jmp 0x44b0e1
test ecx, ecx
je 0x44b4db
mov eax, dword [ebp - 0x253c]
sub eax, ecx
cmp eax, 0x1000
jb 0x44b4d2
test cl, 0x1f
jne 0x44b0ff
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44b0ff
sub ecx, eax
cmp ecx, 4
jb 0x44b0ff
cmp ecx, 0x23
ja 0x44b0ff
mov ecx, eax
push ecx
call fcn.004cab14
add esp, 4
mov eax, dword [ebp - 0x2528]
test eax, eax
je 0x44b527
mov ecx, dword [ebp - 0x252c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x44b51e
test al, 0x1f
jne 0x44b0ff
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x44b0ff
sub eax, ecx
cmp eax, 4
jb 0x44b0ff
cmp eax, 0x23
ja 0x44b0ff
mov eax, ecx
push eax
call fcn.004cab14
add esp, 4
test edi, edi
je 0x44b532
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.00418e80
mov eax, dword [ebp - 0x2534]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x44b54d
push eax
call edi
test ebx, ebx
je 0x44b554
push ebx
call edi
lea ecx, [ebp - 0x80]
call fcn.00418e80
lea ecx, [ebp - 0x98]
call fcn.00418e80
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.00465694
mov esp, ebp
pop ebp
ret