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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e37b
mov eax, dword fs:[0]
push eax
mov eax, 0x1ab8
call fcn.004db7a0
mov eax, dword [0x54b144]
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.004dcc10
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 [0x54f628]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a47d4
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a47c3
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004dcc10
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 [0x54f128], eax
push str.WinHttpCrackUrl
push eax
call ebx
mov dword [0x54f628], eax
test eax, eax
je 0x4a47e2
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 0x4a4814
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.0044a750
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 0x4a4842
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.0044ae60
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.004dcc10
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
test esi, esi
je 0x4a48a4
lea eax, [ebp - 0x130]
push eax
call esi
test eax, eax
je 0x4a48b5
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a48c3
mov esi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x128]
jmp 0x4a48c7
xor esi, esi
xor ebx, ebx
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x4a4f0e
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.0048cb40
mov ecx, dword [ebp - 0x1a54]
add esp, 4
call fcn.004a5a90
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1a74], esi
test esi, esi
je 0x4a4bac
mov eax, dword [0x54f61c]
test eax, eax
jne 0x4a4994
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a497f
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004dcc10
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 [0x54f128], eax
push str.WinHttpSetStatusCallback
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f61c], eax
test eax, eax
je 0x4a49a0
push 0
push 0xffffffffffffffff
push 0x4a4340
push esi
call eax
mov eax, dword [ebp - 0x1a3c]
test eax, eax
je 0x4a49f9
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a49b0
sub ecx, edx
sar ecx, 1
je 0x4a49f9
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.004a5b90
add esp, 8
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
mov dword [ebp - 0x1a50], 4
call fcn.004a55a0
mov ecx, eax
mov dword [ebp - 0x1a4c], eax
add esp, 8
test ecx, ecx
jne 0x4a4a4d
mov edx, dword [ebp - 0x1aa8]
push ecx
push dword [ebp - 0x1aa0]
mov ecx, esi
call fcn.004a55a0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x1a4c], ecx
test ecx, ecx
je 0x4a4bac
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.004a5660
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
jne 0x4a4ac6
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.004a5660
add esp, 0x14
mov dword [ebp - 0x1a58], eax
test eax, eax
je 0x4a4bac
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 0x4a4b96
push 0x3e8
lea eax, [esi + 4]
mov dword [esi], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4a4c49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x1a48]
call fcn.004a40b0
test esi, esi
je 0x4a4cf5
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 0x4a4be4
call fcn.004a40b0
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 0x4a4c06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4a4eea
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4ee0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4f18
jmp 0x4a4ee0
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 0x4a4b96
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.004a5b90
add esp, 8
test eax, eax
jne 0x4a4d68
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0
jmp 0x4a4bac
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a4d93
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a4bac
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov dword [ebp - 0x1a40], 1
mov ecx, dword [ecx + 0x20]
call fcn.004a5730
add esp, 0x14
test eax, eax
jne 0x4a4ddb
mov ecx, dword [ebp - 0x1a38]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004a5730
add esp, 0x14
test eax, eax
jne 0x4a4ddb
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a4ba9
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 0x4a4bac
mov esi, dword [ebp - 0x1a38]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x4a4e42
lea eax, [esi + 4]
push eax
call ebx
mov dword [ebp - 0x1a40], 0
jmp 0x4a4bac
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.004a57f0
add esp, 0x10
cmp dword [ebp - 0x1a5c], 0xc8
je 0x4a4e98
mov eax, dword [ebp - 0x1a38]
mov dword [ebp - 0x1a40], 0
add eax, 4
jmp 0x4a4ba9
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.004a57f0
add esp, 0x10
test eax, eax
je 0x4a4ed2
mov eax, dword [ebp - 0x1a60]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x1a38]
add eax, 4
jmp 0x4a4ba9
push edx
push ecx
call fcn.004dafca
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.004dafe6
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00450130
call fcn.004e002c
int3