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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6388
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x84c], 0xf
mov dword [ebp - 0x850], edi
mov byte [ebp - 0x860], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x830], 0xf
mov dword [ebp - 0x834], edi
mov byte [ebp - 0x844], 0
mov byte [ebp - 4], 3
mov dword [ebp - method.xurl_handle.virtual_0], vtable.xurl_handle.0
mov dword [ebp - 0x8ac], edi
mov dword [ebp - 0x8a8], edi
mov byte [ebp - 0x8a4], 0
cmp dword [0x4dcfc0], edi
jne 0x406e54
call fcn.004197b0
test eax, eax
je 0x406e54
mov dword [ebp - 0x8ac], edi
jmp 0x406ef5
lea ecx, [ebp - 0x8cc]
call fcn.0041f760
test eax, eax
je 0x406e72
mov dword [ebp - 0x8ac], 0
jmp 0x406ef5
mov eax, dword [ebp - 0x8cc]
mov dword [ebp - 0x8ac], eax
test eax, eax
je 0x406ef5
push 1
push 0x34
push eax
call fcn.00419920
mov dword [ebp - 0x8a8], eax
add esp, 0xc
mov eax, dword [ebp - 0x8ac]
test eax, eax
je 0x406ef5
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 - 0x8a8], eax
add esp, 0xc
mov eax, dword [ebp - 0x8ac]
test eax, eax
je 0x406ef5
lea ecx, [ebp - 0x8b0]
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 - 0x8ac]
call fcn.00419920
add esp, 0xc
mov dword [ebp - 0x8a8], eax
push 0x3ff
lea eax, [ebp - 0x40f]
mov byte [ebp - 4], 4
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.0048d420
add esp, 0xc
lea eax, [esi + 0x174]
push str.version.json
push eax
push 0x4b2efc
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00488e61
mov ecx, dword [ebp - 0x8ac]
add esp, 0x14
test ecx, ecx
je 0x407785
lea eax, [ebp - 0x410]
push eax
push 0x2712
push ecx
call fcn.00419920
add esp, 0xc
mov dword [ebp - 0x8a8], eax
test eax, eax
sete al
test al, al
je 0x40777f
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x8b0]
call sym.ali213Update.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_xurl_handle::perform_to_cstring_void_
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 5
call fcn.00401f70
cmp dword [ebp - 0x814], 0x10
jb 0x406fae
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x850], 2
jae 0x406fc6
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8ac]
jmp 0x407789
mov byte [ebp - 0x8c0], 0
and dword [ebp - 0x8c0], 0xfffffeff
mov dword [ebp - 0x8bc], 0
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x8b8], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 0x10
lea ecx, [ebp - 0x8c8]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.0040c240
test al, al
jne 0x407033
lea ecx, [ebp - 0x8c8]
mov byte [ebp - 4], 4
call fcn.004129b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8ac]
jmp 0x407789
mov ecx, dword [ebp - 0x8b8]
push str.version
call fcn.00413310
lea ecx, [ebp - 0x8c8]
cmp eax, 0x4dce10
jne 0x407068
mov byte [ebp - 4], 4
call fcn.004129b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8ac]
jmp 0x407789
push str.version
lea eax, [ebp - 0x8a0]
push eax
call fcn.0040c610
push ecx
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0040c720
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x2b8]
mov byte [ebp - 4], 0xa
push eax
call fcn.00401f70
cmp dword [ebp - 0x814], 0x10
jb 0x4070b7
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 8
call fcn.004129b0
push str.gamedir
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0040c610
push ecx
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.0040c720
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 0xc
call fcn.00401f70
cmp dword [ebp - 0x814], 0x10
jb 0x407136
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 8
call fcn.004129b0
push str.gamesver
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0040c610
push ecx
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 0xd
push ecx
mov ecx, eax
call fcn.0040c720
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x2d4]
mov byte [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00401f70
cmp dword [ebp - 0x814], 0x10
jb 0x4071b7
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 8
call fcn.004129b0
cmp dword [ebx + 0x14], 0x10
jb 0x4071eb
mov eax, dword [ebx]
jmp 0x4071ed
mov eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
lea eax, [esi + 0x288]
push eax
call edi
test eax, eax
je 0x407371
cmp dword [ebp - 0x830], 0x10
lea eax, [ebp - 0x844]
mov ecx, esi
cmovae eax, dword [ebp - 0x844]
push eax
call fcn.004083b0
lea edi, [esi + 0x74]
mov dword [ebp - 0x868], 0xf
mov dword [ebp - 0x86c], 0
mov byte [ebp - 0x87c], 0
mov byte [ebp - 4], 0xf
test edi, edi
je 0x40726b
cmp byte [edi], 0
jne 0x407250
xor ecx, ecx
jmp 0x40725e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407255
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x87c]
call fcn.00401d20
push 0x12
push str.configconfig.ini
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 0x10
call fcn.00401b90
mov dword [ebp - 0x88c], 0xf
mov dword [ebp - 0x890], 0
mov byte [ebp - 0x8a0], 0
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4072c8
cmp byte [edi], 0
jne 0x4072ad
xor ecx, ecx
jmp 0x4072bb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072b2
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x8a0]
call fcn.00401d20
push str.configconfig.ini
lea edx, [ebp - 0x8a0]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x828]
call fcn.00401a40
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4072ed
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x4072f5
mov ebx, dword [ebx]
push eax
push ebx
push str.gamesver
push str.base
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x814], 0x10
jb 0x40731e
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x88c], 0x10
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
jb 0x407350
push dword [ebp - 0x8a0]
call fcn.00488361
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x868], 0x10
jb 0x40736b
push dword [ebp - 0x87c]
call fcn.00488361
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ecx, dword [ebp - 0x8b8]
push str.resource
call fcn.00413310
cmp eax, 0x4dce10
je 0x40753e
push str.resource
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0040c610
push ecx
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 0x13
push ecx
mov ecx, eax
call fcn.0040c720
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x2f0]
mov byte [ebp - 4], 0x14
push eax
mov ecx, ebx
call fcn.00401f70
cmp dword [ebp - 0x814], 0x10
jb 0x4073e3
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 8
call fcn.004129b0
cmp dword [ebx + 0x14], 0x10
jb 0x407417
mov eax, dword [ebx]
jmp 0x407419
mov eax, ebx
push eax
lea eax, [esi + 0x29c]
push eax
call edi
test eax, eax
je 0x40753e
mov ecx, esi
call fcn.004085e0
cmp byte [esi + 0x74], 0
lea edi, [esi + 0x74]
jne 0x40743f
xor ecx, ecx
jmp 0x40744d
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407444
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x860]
call fcn.00401d20
push 0x12
push str.configconfig.ini
lea ecx, [ebp - 0x860]
call fcn.00401b90
mov dword [ebp - 0x868], 0xf
mov dword [ebp - 0x86c], 0
mov byte [ebp - 0x87c], 0
mov byte [ebp - 4], 0x15
test edi, edi
je 0x4074b6
cmp byte [edi], 0
jne 0x407498
xor ecx, ecx
jmp 0x4074a9
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4074a0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x87c]
call fcn.00401d20
push str.configconfig.ini
lea edx, [ebp - 0x87c]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x828]
call fcn.00401a40
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4074db
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x4074e3
mov ebx, dword [ebx]
push eax
push ebx
push str.resource
push str.base
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x814], 0x10
jb 0x40750c
push dword [ebp - 0x828]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x868], 0x10
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
jb 0x40753e
push dword [ebp - 0x87c]
call fcn.00488361
add esp, 4
lea edx, [esi + 0x274]
mov dword [ebp - 0x868], 0xf
mov dword [ebp - 0x86c], 0
mov byte [ebp - 0x87c], 0
mov byte [ebp - 4], 0x17
test edx, edx
je 0x40758b
cmp byte [edx], 0
jne 0x407570
xor ecx, ecx
jmp 0x40757e
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407575
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x87c]
call fcn.00401d20
lea eax, [ebp - 0x87c]
mov byte [ebp - 4], 0x18
push eax
lea eax, [esi + 0x2b8]
push eax
call fcn.00407820
mov edi, eax
mov byte [ebp - 4], 8
test edi, edi
sete bl
cmp dword [ebp - 0x868], 0x10
jb 0x4075c4
push dword [ebp - 0x87c]
call fcn.00488361
add esp, 4
test bl, bl
jne 0x4076e4
cmp dword [esi + 0x2cc], 0x10
lea eax, [esi + 0x2b8]
jb 0x4075dd
mov eax, dword [eax]
push 0x4b31a0
push eax
lea eax, [esi + 0x174]
push eax
push str._s__s__s
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00488e61
mov eax, dword [ebp - 0x8ac]
add esp, 0x18
test eax, eax
je 0x4076e4
lea ecx, [ebp - 0x410]
push ecx
push 0x2712
push eax
call fcn.00419920
add esp, 0xc
mov dword [ebp - 0x8a8], eax
test eax, eax
sete al
test al, al
je 0x4076e4
push str.patches_sourcelist_s.txt
lea ebx, [esi + 0x74]
push ebx
push 0x4b2e38
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00488e61
add esp, 0x14
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x8b0]
push eax
call sym.ali213Update.exe_public:_unsigned_int___thiscall_xurl_handle::perform_to_file_char_const__
test eax, eax
je 0x4076e2
xor dl, dl
lea ecx, [ebp - 0x410]
call fcn.004010e0
test al, al
je 0x4076e2
push 0x3ff
lea eax, [ebp - 0x80f]
mov byte [ebp - 0x810], 0
push 0
push eax
call fcn.0048d420
add esp, 0xc
lea eax, [ebp - 0x810]
push str.patches_sourcelist.txt
push ebx
push 0x4b2e38
push 0x400
push eax
call fcn.00488e61
add esp, 0x14
lea ecx, [ebp - 0x810]
xor dl, dl
call fcn.004010e0
mov ecx, esi
test al, al
jne 0x40771d
push 1
push ebx
push ebx
call fcn.00405070
test al, al
jne 0x40772b
xor edi, edi
lea ecx, [ebp - 0x8c8]
mov byte [ebp - 4], 4
call fcn.004129b0
lea ecx, [ebp - 0x8b0]
mov byte [ebp - 4], 3
call sym.ali213Update.exe_public:_void___thiscall_xurl_handle::destructor_void_
lea ecx, [ebp - 0x844]
call sym.ali213Update.exe_public:_void___thiscall_post_fields::destructor_void_
lea ecx, [ebp - 0x860]
call sym.ali213Update.exe_public:_void___thiscall_post_fields::destructor_void_
jmp 0x4077f8
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.004057e0
push str.patches_sourcelist_s.txt
push ebx
push 0x4b2efc
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00488e61
add esp, 0x14
lea eax, [ebp - 0x810]
mov ecx, esi
push 1
push eax
call fcn.004057e0
test al, al
je 0x4076e2
mov ecx, esi
call fcn.004060f0
mov ecx, esi
test eax, eax
jne 0x407775
call fcn.00406c10
jmp 0x4076e2
call fcn.00406cf0
jmp 0x407015
mov ecx, dword [ebp - 0x8ac]
mov byte [ebp - 4], 3
mov dword [ebp - method.xurl_handle.virtual_0], vtable.xurl_handle.0
test ecx, ecx
je 0x4077a5
cmp byte [ebp - 0x8a4], 0
jne 0x4077a5
call fcn.0041f320
cmp dword [ebp - 0x830], 0x10
mov dword [ebp - 0x8ac], 0
jb 0x4077c6
push dword [ebp - 0x844]
call fcn.00488361
add esp, 4
cmp dword [ebp - 0x84c], 0x10
mov dword [ebp - 0x830], 0xf
mov dword [ebp - 0x834], 0
mov byte [ebp - 0x844], 0
jb 0x4077f8
push dword [ebp - 0x860]
call fcn.00488361
add esp, 4
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.00488366
mov esp, ebp
pop ebp
ret