Function at 0x4a1780
Capabilities:
Check http status code
Link many functions at runtime
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daf53
mov eax, dword fs:[0]
push eax
mov eax, 0x1898
call fcn.004a5780
mov eax, dword [0x511070]
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 ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x182c], eax
mov eax, dword [ebp + 0xc]
push 0x1800
mov dword [ebp - 0x1834], eax
lea eax, [ebp - 0x1828]
push edi
push eax
mov dword [ebp - 0x1838], edi
mov dword [ebp - 0x1830], edi
mov dword [ebp - 0x184c], edi
mov dword [ebp - 0x185c], edi
mov dword [ebp - 0x1858], edi
mov dword [ebp - 0x1840], edi
mov dword [ebp - 0x1854], edi
mov dword [ebp - 0x1850], edi
call fcn.004a73c0
push 0x38
lea eax, [ebp - 0x1894]
push edi
push eax
call fcn.004a73c0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x1898], 0x3c
mov dword [ebp - 0x1864], eax
add esp, 0x18
lea eax, [ebp - 0x1428]
mov dword [ebp - 0x1878], 0x200
mov dword [ebp - 0x1888], eax
mov ecx, ebx
lea eax, [ebp - 0xc28]
mov dword [ebp - 0x1868], 0x200
mov dword [ebp - 0x1874], eax
lea eax, [ebp - 0x1828]
mov dword [ebp - 0x1894], eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x186c], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x187c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1890], 0x200
mov dword [ebp - 0x1870], 0x200
mov dword [ebp - 0x1884], 0x200
mov dword [ebp - 0x1860], 0x200
call dword [eax + 0xc]
mov eax, dword [0x515c20]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a18db
call fcn.004a26d0
push str.WinHttpCrackUrl
push dword [0x515350]
call esi
mov dword [0x515c20], eax
test eax, eax
je 0x4a18ee
lea ecx, [ebp - 0x1898]
push ecx
push 0
push 0
push dword [ebp - 0x182c]
call eax
mov edx, dword [ebp - 0x186c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4a190d
xor ecx, ecx
jmp 0x4a1933
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x182c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1920
sub ecx, dword [ebp - 0x182c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004393e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1864]
cmp word [edx], 0
jne 0x4a1954
xor ecx, ecx
jmp 0x4a1973
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x182c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1960
sub ecx, dword [ebp - 0x182c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0043f580
lea eax, [ebp - 0x1848]
mov dword [ebp - 0x182c], 0
push eax
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1848], 0
push eax
call fcn.004a1690
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4a19b9
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1844], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1844]
push dword [ebp - 0x1848]
push dword [ebp - 0x182c]
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT__d._d__QQPCMgr7.0_
push eax
call fcn.00422000
mov ecx, dword [ebp - 0x1844]
add esp, 4
call fcn.004a2900
add esp, 0xc
mov dword [ebp - 0x183c], eax
test eax, eax
je 0x4a1ea4
mov eax, dword [0x515c1c]
test eax, eax
jne 0x4a1a2b
call fcn.004a26d0
push str.WinHttpSetStatusCallback
push dword [0x515350]
call esi
mov dword [0x515c1c], eax
test eax, eax
je 0x4a1a3c
push 0
push 0xffffffffffffffff
push 0x4a14d0
push dword [ebp - 0x183c]
call eax
mov eax, dword [ebp - 0x1834]
test eax, eax
je 0x4a1ab8
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1a50
sub ecx, edx
sar ecx, 1
je 0x4a1ab8
mov eax, dword [ebp - 0x1834]
mov dword [ebp - 0x18a0], eax
mov eax, dword [0x515c14]
mov dword [ebp - 0x18a4], 3
mov dword [ebp - 0x189c], 0
test eax, eax
jne 0x4a1aa5
call fcn.004a26d0
push str.WinHttpSetOption
push dword [0x515350]
call esi
mov dword [0x515c14], eax
test eax, eax
je 0x4a1ab8
push 0xc
lea ecx, [ebp - 0x18a4]
push ecx
push 0x26
push dword [ebp - 0x183c]
call eax
movzx eax, word [ebp - 0x1880]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1888]
mov dword [ebp - 0x182c], eax
mov eax, dword [0x515c24]
mov dword [ebp - 0x1840], 4
test eax, eax
jne 0x4a1b1a
call fcn.004a26d0
push str.WinHttpConnect
push dword [0x515350]
call esi
mov dword [0x515c24], eax
test eax, eax
jne 0x4a1b1a
movzx eax, word [ebp - 0x1880]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1888]
mov dword [ebp - 0x182c], eax
jmp 0x4a1b64
push 0
push dword [ebp - 0x1834]
push dword [ebp - 0x182c]
push dword [ebp - 0x183c]
call eax
mov esi, eax
mov dword [ebp - 0x1838], eax
test esi, esi
jne 0x4a1bb0
movzx eax, word [ebp - 0x1880]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1888]
mov dword [ebp - 0x182c], eax
mov eax, dword [0x515c24]
test eax, eax
jne 0x4a1b8a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.004a26d0
push str.WinHttpConnect
push dword [0x515350]
call esi
mov dword [0x515c24], eax
test eax, eax
jne 0x4a1b8a
mov dword [ebp - 0x1838], eax
jmp 0x4a1ea4
push 0
push dword [ebp - 0x1834]
push dword [ebp - 0x182c]
push dword [ebp - 0x183c]
call eax
mov esi, eax
mov dword [ebp - 0x1838], esi
test esi, esi
je 0x4a1ea4
mov edx, 0x1bb
mov eax, 0x100
cmp word [ebp - 0x1880], dx
mov ecx, 0x800100
cmove eax, ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x1834], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x182c], eax
mov eax, dword [0x515c30]
test eax, eax
jne 0x4a1c08
call fcn.004a26d0
push str.WinHttpOpenRequest
push dword [0x515350]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c30], eax
test eax, eax
je 0x4a1c2f
push dword [ebp - 0x1834]
push 0
push 0
push str.HTTP_1.1
push dword [ebp - 0x182c]
push 0x4fc920
push esi
call eax
mov dword [ebp - 0x182c], eax
test eax, eax
jne 0x4a1c5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x1834]
cmovae eax, dword [ebp - 0x28]
mov ecx, esi
sub esp, 0xc
push eax
call fcn.004a2770
add esp, 0x14
mov dword [ebp - 0x182c], eax
test eax, eax
je 0x4a1ea4
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x30], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x34], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x38], eax
call esi
mov edx, dword [ebx + 0x30]
lea esi, [ebx + 0x2c]
mov ecx, dword [ebp - 0x182c]
push esi
push eax
push dword [ebx + 0x38]
mov dword [ebx + 0x3c], eax
push dword [ebx + 0x34]
call fcn.004a1240
add esp, 0x10
test eax, eax
jne 0x4a1e8a
mov eax, dword [esi]
test eax, eax
je 0x4a1e8a
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x1834], eax
mov dword [ebp - 0x1830], eax
mov eax, dword [ebp - 0x1834]
push eax
call esi
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1830]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1834]
push eax
call esi
mov ecx, dword [ebp - 0x1830]
lea eax, [ebp - 0x1830]
push 4
push eax
mov edx, 0x2d
mov ecx, dword [ecx + 0x20]
call fcn.004a29b0
add esp, 8
test eax, eax
jne 0x4a1d40
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x3c], 0
jmp 0x4a1ea4
mov ecx, dword [ebp - 0x1830]
call fcn.004a1350
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x4a1ea4
mov ecx, dword [ebp - 0x1830]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a27c0
add esp, 0x14
test eax, eax
jne 0x4a1d98
mov ecx, dword [ebp - 0x1830]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a27c0
add esp, 0x14
test eax, eax
jne 0x4a1d98
mov eax, dword [ebp - 0x1830]
add eax, 4
jmp 0x4a1e9d
mov eax, dword [ebp - 0x1830]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call esi
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x185c], eax
mov eax, dword [ebx + 0x38]
push 0xea60
mov dword [ebp - 0x1858], eax
lea eax, [ebp - 0x185c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4a1ea4
mov ecx, dword [ebp - 0x1830]
call fcn.004a1350
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x4a1ea4
mov ecx, dword [ebp - 0x1830]
lea eax, [ebp - 0x1840]
push 0
push eax
lea eax, [ebp - 0x184c]
mov edx, 0x20000013
mov ecx, dword [ecx + 0x20]
push eax
push 0
call fcn.004a2800
add esp, 0x10
cmp dword [ebp - 0x184c], 0xc8
je 0x4a1e38
mov eax, dword [ebp - 0x1830]
xor edi, edi
add eax, 4
push eax
call esi
jmp 0x4a1ea4
mov ecx, dword [ebp - 0x1830]
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x1840]
mov dword [ebp - 0x1850], 0
push eax
mov ecx, dword [ecx + 0x20]
lea eax, [ebp - 0x1854]
push eax
push 0
mov edx, 0x20000005
call fcn.004a2800
add esp, 0x10
test eax, eax
je 0x4a1e7c
mov eax, dword [ebp - 0x1854]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x1830]
add eax, 4
push eax
call esi
jmp 0x4a1ea4
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x3c], 0
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1838]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x183c]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1830]
test eax, eax
je 0x4a1f11
mov dword [ebp - 0x1838], eax
cmp dword [ebp - 0x1838], 0
je 0x4a1f07
mov eax, dword [ebp - 0x1838]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a1f07
mov ecx, dword [ebp - 0x1838]
call fcn.004a1380
mov ecx, dword [ebp - 0x1838]
call fcn.004a11c0
mov dword [ebp - 0x1830], 0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1844]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1f33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a1f48
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433850
mov eax, edi
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.004a474b
mov esp, ebp
pop ebp
ret 8