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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51163b
mov eax, dword fs:[0]
push eax
mov eax, 0x1ab8
call fcn.004de8c0
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.004dfec0
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 0x4a4c94
mov eax, dword [0x554128]
test eax, eax
jne 0x4a4c83
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004dfec0
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 0x4a4ca2
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 0x4a4cd4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.0044a770
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 0x4a4d02
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.004dfec0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
test esi, esi
je 0x4a4d64
lea eax, [ebp - 0x130]
push eax
call esi
test eax, eax
je 0x4a4d75
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a4d83
mov esi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x128]
jmp 0x4a4d87
xor esi, esi
xor ebx, ebx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x4a53ce
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.0048d020
mov ecx, dword [ebp - 0x1a54]
add esp, 4
call fcn.004a5f50
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1a74], esi
test esi, esi
je 0x4a506c
mov eax, dword [0x554620]
test eax, eax
jne 0x4a4e54
mov eax, dword [0x554128]
test eax, eax
jne 0x4a4e3f
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004dfec0
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 0x4a4e60
push 0
push 0xffffffffffffffff
push 0x4a4800
push esi
call eax
mov eax, dword [ebp - 0x1a3c]
test eax, eax
je 0x4a4eb9
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4e70
sub ecx, edx
sar ecx, 1
je 0x4a4eb9
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.004a6050
add esp, 8
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
mov dword [ebp - 0x1a50], 4
call fcn.004a5a60
mov ecx, eax
mov dword [ebp - 0x1a4c], eax
add esp, 8
test ecx, ecx
jne 0x4a4f0d
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
call fcn.004a5a60
mov ecx, eax
add esp, 8
mov dword [ebp - 0x1a4c], ecx
test ecx, ecx
je 0x4a506c
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.004a5b20
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
jne 0x4a4f86
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.004a5b20
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
je 0x4a506c
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 0x4a5056
push 0x3e8
lea eax, [esi + 4]
mov dword [esi], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4a5109
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x1a48]
call fcn.004a4570
test esi, esi
je 0x4a51b5
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 0x4a50a4
call fcn.004a4570
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 0x4a50c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4a53aa
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a53a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a53d8
jmp 0x4a53a0
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 0x4a5056
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.004a6050
add esp, 8
test eax, eax
jne 0x4a5228
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0
jmp 0x4a506c
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a5253
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a506c
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov dword [ebp - 0x1a40], 1
mov ecx, dword [ecx + 0x20]
call fcn.004a5bf0
add esp, 0x14
test eax, eax
jne 0x4a529b
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a5bf0
add esp, 0x14
test eax, eax
jne 0x4a529b
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a5069
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 0x4a506c
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a5302
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a506c
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.004a5cb0
add esp, 0x10
cmp dword [ebp - 0x1a5c], 0xc8
je 0x4a5358
mov eax, dword [ebp - 0x1a38]
mov dword [ebp - 0x1a40], 0
add eax, 4
jmp 0x4a5069
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.004a5cb0
add esp, 0x10
test eax, eax
je 0x4a5392
mov eax, dword [ebp - 0x1a60]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a5069
push edx
push ecx
call fcn.004de0ea
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.004de0fd
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00450260
call fcn.004e32da
int3