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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51e668
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea eax, [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, ecx
push edi
mov ebx, dword [ebp + 4]
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xcc]
mov edi, 1
test eax, eax
jne 0x49d45e
mov ecx, dword [esi + 0xc8]
test ecx, ecx
jne 0x49d45e
cmp dword [esi + 0xe0], edi
jne 0x49d401
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc8], edi
test eax, eax
jne 0x49d3f5
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x1c]
push edx
call fcn.0051678d
test eax, eax
je 0x49d3c4
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x1c], 0x924114
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
call fcn.00516727
mov dword [esp + 0x44], 0xffffffff
mov ecx, esi
call fcn.0049d5c0
jmp 0x49d5a2
test ecx, ecx
jne 0x49d45e
mov ecx, dword [esi + 0xe0]
test ecx, ecx
jne 0x49d45e
mov eax, dword [esi + 0xb8]
test eax, eax
jne 0x49d5a2
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x1c]
push edx
call fcn.0051678d
test eax, eax
je 0x49d434
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x1c], 0x924114
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], edi
call fcn.00516727
jmp 0x49d5a2
mov ecx, dword [esi + 0xc0]
test ecx, ecx
je 0x49d5a2
test eax, eax
jne 0x49d484
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x49d484
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x49d47a
mov dword [esi + 0xc4], edi
mov eax, dword [esi + 0xb8]
test eax, eax
jne 0x49d4dc
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x24]
push edx
call fcn.0051678d
test eax, eax
je 0x49d4ab
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x24], 0x924114
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 2
call fcn.00516727
mov dword [esp + 0x44], 0xffffffff
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0xc0]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edx
push edi
call ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.0049d1b0
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x49d560
call fcn.00482ed0
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
mov eax, dword [esp + 0x14]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x58]
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x49d589
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
mov eax, dword [esp + 0x4c]
push 0xcc0020
push 0
push 0
push edi
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x1c]
push edx
push edi
call ebp
mov dword [esi + 0xc4], 0
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4