Function at 0x407a90
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6462
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x4d6750]
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 dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0
call fcn.00409300
mov dword [ebp - 0x464], eax
lea esi, [ebx + 0x1c]
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x464]
cmp eax, ebx
je 0x407b4b
mov eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x464]
push dword [eax + 4]
call fcn.00408c90
mov eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x464]
mov byte [ebp - 0x478], 0
push dword [ebp - 0x478]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x464]
push ebx
mov dword [eax], eax
mov eax, dword [ebp - 0x464]
mov dword [eax + 8], eax
mov dword [ebp - 0x460], 0
call fcn.004095a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4dcfc0], 0
mov dword [ebp - 0x47c], eax
mov dword [ebp - method.xurl_handle.virtual_0], vtable.xurl_handle.0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov byte [ebp - 0x468], 0
jne 0x407ba4
call fcn.004197b0
test eax, eax
je 0x407ba4
mov dword [ebp - 0x470], 0
jmp 0x407c45
lea ecx, [ebp - 0x478]
call fcn.0041f760
test eax, eax
je 0x407bc2
mov dword [ebp - 0x470], 0
jmp 0x407c45
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x470], eax
test eax, eax
je 0x407c45
push 1
push 0x34
push eax
call fcn.00419920
mov dword [ebp - 0x46c], eax
add esp, 0xc
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x407c45
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_36.0.1985.125_Safari_537.36
push 0x2722
push eax
call fcn.00419920
mov dword [ebp - 0x46c], eax
add esp, 0xc
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x407c45
lea ecx, [ebp - 0x474]
push ecx
push 0x2749
push eax
call fcn.00419920
add esp, 0xc
push sym.ali213Update.exe_private:_static_int___cdecl_xurl_handle::private_xurl_progress_callback_void___long_long___int64___long_long___int64___long_long___int64___long_long___int64__
push 0x4efb
push dword [ebp - 0x470]
call fcn.00419920
add esp, 0xc
mov dword [ebp - 0x46c], eax
push 0x3ff
lea eax, [ebp - 0x40f]
mov byte [ebp - 4], 1
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.0048d420
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push 0x4b31f8
call edi
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x407c87
mov edx, dword [ecx]
push eax
push 0x4b31f8
push 4
call dword [edx + 4]
mov ecx, dword [ebp - 0x470]
test ecx, ecx
je 0x407ce1
push ebx
push 0x2749
push ecx
call fcn.00419920
add esp, 0xc
push 0x405030
push 0x4efb
push dword [ebp - 0x470]
call fcn.00419920
mov ecx, dword [ebp - 0x470]
add esp, 0xc
mov dword [ebp - 0x46c], eax
test ecx, ecx
je 0x407ce1
push 0
push 0x2b
push ecx
call fcn.00419920
mov ecx, dword [ebp - 0x470]
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x464]
mov esi, dword [eax]
cmp esi, eax
je 0x407f23
lea eax, [esi + 0x28]
push eax
push str.writing_files:_s
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00488e61
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call edi
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x407d2d
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x410]
push eax
push 4
call dword [edx + 4]
lea edi, [esi + 0x10]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.00401f70
mov byte [ebp - 4], 3
cmp dword [edi + 0x14], 0x10
jb 0x407d6d
mov eax, dword [edi]
jmp 0x407d6f
mov eax, edi
push dword [ebp - 0x47c]
push eax
lea eax, [ebp - 0x42c]
push str._s_t_u
push eax
call fcn.004018c0
add esp, 0x10
mov dword [ebp - 0x448], 0xf
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
push 1
push 0x4b3130
call fcn.00401d20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x444]
push 1
push 0x4b2dd0
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
call fcn.00401d20
push ecx
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00409360
cmp dword [ebp - 0x430], 0x10
jb 0x407e1d
push dword [ebp - 0x444]
call fcn.00488361
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x448], 0x10
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
jb 0x407e53
push dword [ebp - 0x45c]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x470]
cmovae eax, dword [ebp - 0x42c]
test ecx, ecx
je 0x407e86
push eax
push 0x2712
push ecx
call fcn.00419920
add esp, 0xc
mov dword [ebp - 0x46c], eax
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x474]
call sym.ali213Update.exe_public:_unsigned_int___thiscall_xurl_handle::perform_to_file_char_const__
test eax, eax
je 0x407eae
mov eax, dword [esi + 0x128]
add dword [ebx + 0x50], eax
mov eax, dword [esi + 0x12c]
adc dword [ebx + 0x54], eax
inc dword [ebx + 0x60]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x418], 0x10
jb 0x407ec9
push dword [ebp - 0x42c]
call fcn.00488361
add esp, 4
cmp byte [esi + 0xd], 0
jne 0x407f09
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x407eee
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x407f09
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x407ee2
jmp 0x407f09
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x407f07
cmp esi, dword [eax + 8]
jne 0x407f07
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x407ef7
mov esi, eax
mov eax, dword [ebp - 0x464]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jne 0x407cf1
mov ecx, dword [ebp - 0x470]
mov byte [ebp - 4], 0
mov dword [ebp - method.xurl_handle.virtual_0], vtable.xurl_handle.0
test ecx, ecx
je 0x407f49
cmp byte [ebp - 0x468], 0
jne 0x407f49
call fcn.0041f320
mov eax, dword [ebp - 0x464]
push eax
mov dword [ebp - 0x470], 0
lea ecx, [ebp - 0x464]
push dword [eax]
lea eax, [ebp - 0x47c]
push eax
call fcn.00408d50
push dword [ebp - 0x464]
call fcn.00488361
add esp, 4
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.00488366
mov esp, ebp
pop ebp
ret