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

Disassembly:
push 0xffffffffffffffff
push 0x529e51
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push ebp
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x304]
xor ebx, ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMSharedLibrary::GetModuleFullName_struct_HINSTANCE____]
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x2fc], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x304], 1
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFileSystemUtils::GetOnlyDirPrefix_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
push 0x10cc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0xc
mov dword [esp + 0x2c], edi
cmp edi, ebx
mov byte [esp + 0x2fc], 2
je 0x402821
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x2fc], 3
je 0x40280e
mov ecx, dword [esp + 0x30c]
mov edx, dword [esp + 0x308]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0x4c
mov byte [esp + 0x25], 0x54
call fcn.004019a0
push eax
push edi
mov byte [esp + 0x304], 2
call fcn.00401a90
jmp 0x402823
xor eax, eax
push eax
push edi
mov byte [esp + 0x304], 2
call fcn.00401a90
jmp 0x402823
xor eax, eax
mov byte [esp + 0x2fc], 1
mov dword [esi], eax
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x6c]
call fcn.004222d0
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_39.0.2171.95_Safari_537.36
lea ecx, [esp + 0x8c]
mov byte [esp + 0x300], 4
call dword [0x52e394]
push ebp
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2d9], 1
mov byte [esp + 0x1e9], bl
mov byte [esp + 0x1ea], bl
mov byte [esp + 0x1a9], bl
mov byte [esp + 0xe4], 1
mov dword [esp + 0xb0], 2
mov dword [esp + 0x2b8], ebx
mov dword [esp + 0x2e8], 0x320
call dword [0x52e394]
mov eax, dword [esi]
mov eax, dword [eax]
lea edx, [esp + 0x68]
mov ecx, eax
call fcn.004221d0
mov eax, dword [esi]
mov eax, dword [eax]
push eax
call fcn.00422800
mov eax, dword [esi]
mov eax, dword [eax]
push eax
call fcn.00422680
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x300], 1
call fcn.00422ed0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2fc], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2fc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.00515015
add esp, 0x2f0
ret 0xc