Function at 0x4a4a20
Capabilities:
Check http status code
Get common file path
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511a5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1ab8
call fcn.004dece0
mov eax, dword [0x550144]
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
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
push 0x1800
mov dword [ebp - 0x1a3c], eax
lea eax, [ebp - 0x1a34]
push 0
push eax
mov dword [ebp - 0x1a40], 0
mov dword [ebp - 0x1a4c], 0
mov dword [ebp - 0x1a38], 0
mov dword [ebp - 0x1a5c], 0
movlpd qword [ebp - 0x1a7c], xmm0
mov dword [ebp - 0x1a50], 0
mov dword [ebp - 0x1a60], 0
mov dword [ebp - 0x1a70], 0
call fcn.004e02e0
lea eax, [ebp - 0x634]
mov dword [ebp - 0x1aac], 0
mov dword [ebp - 0x1a84], eax
add esp, 0xc
lea eax, [ebp - 0x1634]
mov dword [ebp - 0x1aa0], 0
mov dword [ebp - 0x1aa8], eax
mov ecx, edi
lea eax, [ebp - 0xe34]
mov dword [ebp - 0x1ab8], 0x3c
mov dword [ebp - 0x1a94], eax
lea eax, [ebp - 0x1a34]
mov dword [ebp - 0x1ab4], eax
lea eax, [ebp - 0xa34]
mov dword [ebp - 0x1a8c], eax
lea eax, [ebp - 0x1234]
mov dword [ebp - 0x1a9c], eax
mov eax, dword [edi]
mov dword [ebp - 0x1a98], 0x200
mov dword [ebp - 0x1a88], 0x200
mov dword [ebp - 0x1ab0], 0x200
mov dword [ebp - 0x1a90], 0x200
mov dword [ebp - 0x1aa4], 0x200
mov dword [ebp - 0x1a80], 0x200
call dword [eax + 0xc]
mov eax, dword [0x55462c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a4be4
mov eax, dword [0x554128]
test eax, eax
jne 0x4a4bd3
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpCrackUrl
push eax
call ebx
mov dword [0x55462c], eax
test eax, eax
je 0x4a4bf2
lea ecx, [ebp - 0x1ab8]
push ecx
push 0
push 0
push esi
call eax
mov edx, dword [ebp - 0x1a8c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4c24
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.0044a760
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1a84]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4c52
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.0044aee0
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
push 0x118
mov esi, eax
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004e02e0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
test esi, esi
je 0x4a4cb4
lea eax, [ebp - 0x130]
push eax
call esi
test eax, eax
je 0x4a4cc5
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a4cd3
mov esi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x128]
jmp 0x4a4cd7
xor esi, esi
xor ebx, ebx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x4a531e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a54], eax
push ebx
push esi
lea eax, [ebp - 0x1a54]
mov byte [ebp - 4], 1
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT__d._d__QQPCMgr7.0_
push eax
call fcn.0048cfa0
mov ecx, dword [ebp - 0x1a54]
add esp, 4
call fcn.004a5ea0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1a74], esi
test esi, esi
je 0x4a4fbc
mov eax, dword [0x554620]
test eax, eax
jne 0x4a4da4
mov eax, dword [0x554128]
test eax, eax
jne 0x4a4d8f
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpSetStatusCallback
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554620], eax
test eax, eax
je 0x4a4db0
push 0
push 0xffffffffffffffff
push 0x4a4740
push esi
call eax
mov eax, dword [ebp - 0x1a3c]
test eax, eax
je 0x4a4e09
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4dc0
sub ecx, edx
sar ecx, 1
je 0x4a4e09
mov eax, dword [ebp - 0x1a3c]
mov edx, 0x26
mov dword [ebp - 0x1ac0], eax
mov ecx, esi
lea eax, [ebp - 0x1ac4]
mov dword [ebp - 0x1ac4], 3
push 0xc
push eax
mov dword [ebp - 0x1abc], 0
call fcn.004a5fa0
add esp, 8
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
mov dword [ebp - 0x1a50], 4
call fcn.004a59b0
mov ecx, eax
mov dword [ebp - 0x1a4c], eax
add esp, 8
test ecx, ecx
jne 0x4a4e5d
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
call fcn.004a59b0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x1a4c], ecx
test ecx, ecx
je 0x4a4fbc
mov edx, 0x1bb
mov eax, 0x800100
cmp word [ebp - 0x1aa0], dx
mov esi, 0x100
cmove esi, eax
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push esi
sub esp, 0xc
push eax
call fcn.004a5a70
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
jne 0x4a4ed6
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov ecx, dword [ebp - 0x1a4c]
cmovae eax, dword [ebp - 0x234]
push esi
sub esp, 0xc
push eax
call fcn.004a5a70
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
je 0x4a4fbc
lea eax, [edi + 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 [edi + 0x30], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x34], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x38], eax
call esi
mov dword [ebp - 0x1a44], eax
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1a6c], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x1a68], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1a64], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x203c
push 8
mov dword [ebp - 0x1a3c], eax
mov dword [edi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1a48], esi
test esi, esi
je 0x4a4fa6
push 0x3e8
lea eax, [esi + 4]
mov dword [esi], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4a5059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x1a48]
call fcn.004a44b0
test esi, esi
je 0x4a5105
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0
lea eax, [edi + 0x40]
push eax
call ebx
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1a4c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1a74]
push esi
mov dword [edi + 4], eax
call ebx
mov ecx, dword [ebp - 0x1a38]
test ecx, ecx
je 0x4a4ff4
call fcn.004a44b0
mov dword [ebp - 0x1a38], 0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1a54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5016
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4a52fa
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a52f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5328
jmp 0x4a52f0
push 2
push 1
push 0x1f0003
lea eax, [esi + 0x24]
mov dword [esi + 0x1c], 1
mov esi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
mov eax, dword [ebp - 0x1a3c]
push eax
push dword [ebp - 0x1a64]
push eax
call esi
mov eax, dword [ebp - 0x1a48]
push 2
push 1
push 0x1f0003
add eax, 0x28
push eax
mov eax, dword [ebp - 0x1a3c]
push eax
push dword [ebp - 0x1a68]
push eax
call esi
mov eax, dword [ebp - 0x1a48]
push 2
push 1
push 0x1f0003
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x1a3c]
push eax
push dword [ebp - 0x1a6c]
push eax
call esi
mov eax, dword [ebp - 0x1a48]
push 2
push 1
push 0x1f0003
add eax, 0x30
push eax
mov eax, dword [ebp - 0x1a3c]
push eax
push dword [ebp - 0x1a44]
push eax
call esi
mov eax, dword [ebp - 0x1a48]
mov ecx, dword [ebp - 0x1a58]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x34], 0
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4a4fa6
mov dword [ebp - 0x1a44], eax
mov dword [ebp - 0x1a38], eax
mov eax, dword [ebp - 0x1a44]
lock inc dword [eax]
lea eax, [edi + 0x40]
push eax
call ebx
mov eax, dword [ebp - 0x1a38]
mov dword [ebp - 0x1a44], eax
mov eax, dword [ebp - 0x1a44]
lock inc dword [eax]
mov ecx, dword [ebp - 0x1a38]
lea eax, [ebp - 0x1a38]
push 4
push eax
mov edx, 0x2d
mov ecx, dword [ecx + 0x20]
call fcn.004a5fa0
add esp, 8
test eax, eax
jne 0x4a5178
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0
jmp 0x4a4fbc
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a51a3
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a4fbc
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov dword [ebp - 0x1a40], 1
mov ecx, dword [ecx + 0x20]
call fcn.004a5b40
add esp, 0x14
test eax, eax
jne 0x4a51eb
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a5b40
add esp, 0x14
test eax, eax
jne 0x4a51eb
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a4fb9
mov eax, dword [ebp - 0x1a38]
add eax, 4
push eax
call ebx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1a7c], eax
mov eax, dword [edi + 0x38]
push 0xea60
mov dword [ebp - 0x1a78], eax
lea eax, [ebp - 0x1a7c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4a4fbc
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a5252
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a4fbc
mov ecx, dword [ebp - 0x1a38]
lea eax, [ebp - 0x1a50]
push 0
push eax
lea eax, [ebp - 0x1a5c]
mov dword [ebp - 0x1a40], 1
mov ecx, dword [ecx + 0x20]
mov edx, 0x20000013
push eax
push 0
call fcn.004a5c00
add esp, 0x10
cmp dword [ebp - 0x1a5c], 0xc8
je 0x4a52a8
mov eax, dword [ebp - 0x1a38]
mov dword [ebp - 0x1a40], 0
add eax, 4
jmp 0x4a4fb9
mov ecx, dword [ebp - 0x1a38]
lea eax, [ebp - 0x1a70]
push eax
lea eax, [ebp - 0x1a50]
mov edx, 0x20000005
push eax
mov ecx, dword [ecx + 0x20]
lea eax, [ebp - 0x1a60]
push eax
push 0
call fcn.004a5c00
add esp, 0x10
test eax, eax
je 0x4a52e2
mov eax, dword [ebp - 0x1a60]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a4fb9
push edx
push ecx
call fcn.004de50a
add esp, 8
mov eax, dword [ebp - 0x1a40]
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.004de51d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00450260
call fcn.004e36fa
int3