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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
mov esi, ecx
cmp dword [esi + 0x2f8], 0
jne 0x49b59d
call fcn.005b3770
mov dword [esi + 0x2f8], eax
test eax, eax
jne 0x49b59d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.005b2c90
mov dword [esi + 0x2fc], eax
test eax, eax
je 0x49b594
push 3
call fcn.005b6720
mov eax, dword [eax + 8]
add esp, 4
mov dword [esi + 0x338], eax
cmp eax, 0x71100
jae 0x49b5db
mov eax, dword [ebp + 8]
push eax
call sym.GameRanger.exe_char____cdecl_new_string_char_const__
add esp, 4
mov dword [esi + 0x330], eax
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x2fc]
push 1
push 0x2b
push ecx
call fcn.005b2d20
mov edx, dword [esi + 0x2fc]
push 0
push 0x2f
push edx
call fcn.005b2d20
mov eax, dword [esi + 0x2fc]
push 1
push 0x34
push eax
call fcn.005b2d20
mov ecx, dword [esi + 0x2fc]
push 0xa
push 0x44
push ecx
call fcn.005b2d20
mov edx, dword [esi + 0x2fc]
push 0xb4
push 0x5c
push edx
call fcn.005b2d20
mov eax, dword [esi + 0x2fc]
push 0xa
push 0x4e
push eax
call fcn.005b2d20
mov ecx, dword [esi + 0x2fc]
add esp, 0x48
push 3
push 0xb5
push ecx
call fcn.005b2d20
mov edx, dword [esi + 0x2fc]
push 3
push 0xb6
push edx
call fcn.005b2d20
mov eax, dword [esi + 0x2fc]
push 1
push 0x79
push eax
call fcn.005b2d20
mov ecx, dword [esi + 0x2fc]
push 0x499a40
push 0x4eb4
push ecx
call fcn.005b2d20
add esp, 0x30
cmp dword [esi + 0x338], 0x75300
jb 0x49b6b2
mov edx, dword [esi + 0x2fc]
push 0x100000
push 0x62
push edx
call fcn.005b2d20
add esp, 0xc
push edi
call fcn.0049caf0
mov edi, eax
mov ecx, edi
call fcn.0049c500
test al, al
jne 0x49b6db
mov ecx, edi
call fcn.0049c6b0
test al, al
jne 0x49b6db
mov byte [esi + 0x305], al
jmp 0x49b7f7
push ebx
mov ecx, edi
call fcn.0049c500
mov ecx, edi
test al, al
je 0x49b712
call fcn.0049c530
mov ecx, edi
mov ebx, eax
call fcn.0049c5a0
movzx eax, ax
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0049c5d0
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0049c640
xor edi, edi
jmp 0x49b74e
call fcn.0049c710
mov ecx, edi
mov ebx, eax
call fcn.0049c780
movzx ecx, ax
mov dword [ebp - 4], ecx
mov ecx, edi
call fcn.0049c7b0
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0049c820
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.0049c6e0
xor edx, edx
cmp al, 4
mov eax, dword [ebp - 0xc]
setne dl
lea edi, [edx + 4]
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0
je 0x49b775
movzx edx, word [ebp - 4]
push edx
push ebx
push eax
push ecx
lea eax, [ebp - 0x42c]
push str._s:_s__s:_u
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x18
jmp 0x49b790
movzx ecx, word [ebp - 4]
push ecx
push ebx
lea edx, [ebp - 0x42c]
push str._s:_u
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
cmp dword [esi + 0x330], 0
pop ebx
je 0x49b7c3
lea eax, [ebp - 0x42c]
push eax
call sym.GameRanger.exe_char____cdecl_new_string_char_const__
mov ecx, dword [esi + 0x2fc]
push eax
push 0x2714
push ecx
mov dword [esi + 0x334], eax
call fcn.005b2d20
add esp, 0x10
jmp 0x49b7de
mov eax, dword [esi + 0x2fc]
lea edx, [ebp - 0x42c]
push edx
push 0x2714
push eax
call fcn.005b2d20
add esp, 0xc
mov ecx, dword [esi + 0x2fc]
push edi
push 0x65
push ecx
call fcn.005b2d20
add esp, 0xc
mov byte [esi + 0x305], 1
mov eax, dword [esi + 0x294]
xor edi, edi
cmp eax, edi
je 0x49b859
cmp dword [esi + 0x338], 0x71800
jb 0x49b840
push eax
lea edx, [ebp - 0x2c]
push 0x610630
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
mov ecx, dword [esi + 0x2fc]
lea eax, [ebp - 0x2c]
push eax
push 0x2717
push ecx
call fcn.005b2d20
add esp, 0x18
mov byte [esi + 0x306], 1
jmp 0x49b859
lea ecx, [esi + 0x4c]
mov dword [esi + 0x294], edi
call fcn.0044a990
lea ecx, [esi + 0x170]
call fcn.0044a990
cmp byte [esi + 0x308], 0
mov dword [esi + 0x300], edi
je 0x49b87c
push str.X_Rate_Limit:_trickle
push edi
call fcn.005b65c0
add esp, 8
mov dword [esi + 0x300], eax
cmp byte [esi + 0x2c4], 0
je 0x49b89f
mov edx, dword [esi + 0x300]
push str.X_Idle:_1
push edx
call fcn.005b65c0
add esp, 8
mov dword [esi + 0x300], eax
mov eax, dword [esi + 0x300]
cmp eax, edi
pop edi
je 0x49b8bf
push eax
mov eax, dword [esi + 0x2fc]
push 0x2727
push eax
call fcn.005b2d20
add esp, 0xc
mov ecx, dword [esi + 0x2fc]
push str.Mozilla_5.0__Windows__GameRanger_3.1__https:__www.GameRanger.com_
push 0x2722
push ecx
call fcn.005b2d20
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x2fc]
push edx
push 0x2712
push eax
call fcn.005b2d20
add esp, 0x18
cmp dword [esi + 8], 2
jne 0x49b91e
mov ecx, dword [esi + 0x2fc]
push 0x49a510
push 0x4e6f
push ecx
call fcn.005b2d20
mov edx, dword [esi + 0x2fc]
push esi
push 0x272d
push edx
call fcn.005b2d20
add esp, 0x18
mov eax, dword [esi + 0x2fc]
push 0x49af00
push 0x4e2b
push eax
call fcn.005b2d20
mov ecx, dword [esi + 0x2fc]
push esi
push 0x2711
push ecx
call fcn.005b2d20
mov edx, dword [esi + 0x2fc]
mov eax, dword [esi + 0x2f8]
push edx
push eax
call fcn.005b4b50
add esp, 0x20
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4