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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc453
mov eax, dword fs:[0]
push eax
mov eax, 0x1898
call fcn.004a6780
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.004a83c0
push 0x38
lea eax, [ebp - 0x1894]
push edi
push eax
call fcn.004a83c0
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 [0x515ca0]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a28fb
call fcn.004a36f0
push str.WinHttpCrackUrl
push dword [0x5153d0]
call esi
mov dword [0x515ca0], eax
test eax, eax
je 0x4a290e
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 0x4a292d
xor ecx, ecx
jmp 0x4a2953
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 0x4a2940
sub ecx, dword [ebp - 0x182c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00439160
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1864]
cmp word [edx], 0
jne 0x4a2974
xor ecx, ecx
jmp 0x4a2993
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x182c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2980
sub ecx, dword [ebp - 0x182c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004402a0
lea eax, [ebp - 0x1848]
mov dword [ebp - 0x182c], 0
push eax
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1848], 0
push eax
call fcn.004a26b0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4a29d9
push 0x80004005
call fcn.0041cdf0
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.00421db0
mov ecx, dword [ebp - 0x1844]
add esp, 4
call fcn.004a3920
add esp, 0xc
mov dword [ebp - 0x183c], eax
test eax, eax
je 0x4a2ec4
mov eax, dword [0x515c9c]
test eax, eax
jne 0x4a2a4b
call fcn.004a36f0
push str.WinHttpSetStatusCallback
push dword [0x5153d0]
call esi
mov dword [0x515c9c], eax
test eax, eax
je 0x4a2a5c
push 0
push 0xffffffffffffffff
push 0x4a24f0
push dword [ebp - 0x183c]
call eax
mov eax, dword [ebp - 0x1834]
test eax, eax
je 0x4a2ad8
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2a70
sub ecx, edx
sar ecx, 1
je 0x4a2ad8
mov eax, dword [ebp - 0x1834]
mov dword [ebp - 0x18a0], eax
mov eax, dword [0x515c94]
mov dword [ebp - 0x18a4], 3
mov dword [ebp - 0x189c], 0
test eax, eax
jne 0x4a2ac5
call fcn.004a36f0
push str.WinHttpSetOption
push dword [0x5153d0]
call esi
mov dword [0x515c94], eax
test eax, eax
je 0x4a2ad8
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 [0x515ca4]
mov dword [ebp - 0x1840], 4
test eax, eax
jne 0x4a2b3a
call fcn.004a36f0
push str.WinHttpConnect
push dword [0x5153d0]
call esi
mov dword [0x515ca4], eax
test eax, eax
jne 0x4a2b3a
movzx eax, word [ebp - 0x1880]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1888]
mov dword [ebp - 0x182c], eax
jmp 0x4a2b84
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 0x4a2bd0
movzx eax, word [ebp - 0x1880]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x1888]
mov dword [ebp - 0x182c], eax
mov eax, dword [0x515ca4]
test eax, eax
jne 0x4a2baa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.004a36f0
push str.WinHttpConnect
push dword [0x5153d0]
call esi
mov dword [0x515ca4], eax
test eax, eax
jne 0x4a2baa
mov dword [ebp - 0x1838], eax
jmp 0x4a2ec4
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 0x4a2ec4
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 [0x515cb0]
test eax, eax
jne 0x4a2c28
call fcn.004a36f0
push str.WinHttpOpenRequest
push dword [0x5153d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515cb0], eax
test eax, eax
je 0x4a2c4f
push dword [ebp - 0x1834]
push 0
push 0
push str.HTTP_1.1
push dword [ebp - 0x182c]
push 0x4fc938
push esi
call eax
mov dword [ebp - 0x182c], eax
test eax, eax
jne 0x4a2c7c
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.004a3790
add esp, 0x14
mov dword [ebp - 0x182c], eax
test eax, eax
je 0x4a2ec4
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.004a2260
add esp, 0x10
test eax, eax
jne 0x4a2eaa
mov eax, dword [esi]
test eax, eax
je 0x4a2eaa
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.004a39d0
add esp, 8
test eax, eax
jne 0x4a2d60
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x3c], 0
jmp 0x4a2ec4
mov ecx, dword [ebp - 0x1830]
call fcn.004a2370
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x4a2ec4
mov ecx, dword [ebp - 0x1830]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a37e0
add esp, 0x14
test eax, eax
jne 0x4a2db8
mov ecx, dword [ebp - 0x1830]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a37e0
add esp, 0x14
test eax, eax
jne 0x4a2db8
mov eax, dword [ebp - 0x1830]
add eax, 4
jmp 0x4a2ebd
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 0x4a2ec4
mov ecx, dword [ebp - 0x1830]
call fcn.004a2370
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x4a2ec4
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.004a3820
add esp, 0x10
cmp dword [ebp - 0x184c], 0xc8
je 0x4a2e58
mov eax, dword [ebp - 0x1830]
xor edi, edi
add eax, 4
push eax
call esi
jmp 0x4a2ec4
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.004a3820
add esp, 0x10
test eax, eax
je 0x4a2e9c
mov eax, dword [ebp - 0x1854]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x1830]
add eax, 4
push eax
call esi
jmp 0x4a2ec4
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 0x4a2f31
mov dword [ebp - 0x1838], eax
cmp dword [ebp - 0x1838], 0
je 0x4a2f27
mov eax, dword [ebp - 0x1838]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a2f27
mov ecx, dword [ebp - 0x1838]
call fcn.004a23a0
mov ecx, dword [ebp - 0x1838]
call fcn.004a21e0
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 0x4a2f53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a2f68
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433600
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.004a578d
mov esp, ebp
pop ebp
ret 8