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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51ffd0
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
test ebp, ebp
push edi
mov esi, ecx
je 0x4db9c0
mov eax, dword [ebp + 4]
test eax, eax
je 0x4db9c0
mov ecx, dword [esi + 0x3c]
call fcn.004d7390
cmp eax, 3
je 0x4db585
cmp eax, 4
mov dword [esp + 0x20], 0
jne 0x4db58d
mov dword [esp + 0x20], 1
lea eax, [esi + 0x58]
mov edi, dword [esp + 0xac]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
mov ebx, dword [ecx + 4]
test edx, edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
je 0x4db5d3
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0xbc]
test edx, edx
jne 0x4db624
lea edx, [esi + 0xa0]
test edx, edx
je 0x4db624
cmp dword [edx + 4], 0
je 0x4db624
cmp dword [edi], 0
jne 0x4db624
cmp dword [edi + 4], 0
jne 0x4db624
mov esi, dword [esp + 0x10]
sub ecx, ebx
sub eax, esi
test edx, edx
je 0x4db607
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push ecx
mov ecx, dword [ebp + 4]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4db9c0
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4db648
sub ecx, ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x4db658
mov edx, dword [esp + 0x10]
sub eax, edx
sub ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x54]
call fcn.00515ad9
lea ecx, [esp + 0x34]
mov dword [esp + 0xa0], 0
call fcn.004db9e0
mov dword [esp + 0x34], 0x928178
mov edx, dword [ebp + 4]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edx
mov byte [esp + 0xa4], 1
call ebx
push eax
lea ecx, [esp + 0x58]
call fcn.00515b90
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 4]
sub ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.005166d0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.00515cd1
push 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], eax
call fcn.00515e00
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x6c], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x54]
mov dword [esp + 0x78], edx
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x78], edx
call fcn.004db9f0
lea ecx, [esp + 0x44]
call fcn.00515ad9
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], 2
call fcn.004db9e0
mov dword [esp + 0x3c], 0x928178
mov edx, dword [ebp + 4]
mov byte [esp + 0xa0], 3
push edx
call ebx
push eax
lea ecx, [esp + 0x48]
call fcn.00515b90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 4]
sub ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x40]
call fcn.005166d0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.00515cd1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, edx
push eax
push ecx
push 0
lea edx, [esp + 0x94]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub eax, edx
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, esi
call fcn.004dd3b0
lea ecx, [esp + 0x88]
mov dword [esp + 0x70], ecx
mov ecx, esi
call fcn.004ddb80
test eax, eax
jne 0x4db841
lea edx, [esp + 0x68]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.004dc620
lea ecx, [esp + 0x68]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.004dc280
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x18]
push 0xcc0020
sub edx, eax
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x50]
push 0
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4db88c
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.00515cd1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4db8a2
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00515cd1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x4db96c
cmp dword [edi], 0
jne 0x4db96c
mov eax, dword [edi + 4]
test eax, eax
jne 0x4db96c
mov ecx, esi
call fcn.004dd8d0
mov edx, dword [ebp + 4]
push edx
call ebx
push eax
lea ecx, [esi + 0xa0]
call fcn.00515b90
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub eax, ebx
sub ecx, edi
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
lea edi, [esi + 0xb0]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.005166d0
test edi, edi
je 0x4db91d
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0xa4]
push edi
push ecx
call fcn.00515cd1
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x1c]
push 0xcc0020
sub eax, edx
push edx
mov edx, dword [ebp + 4]
push edi
sub ecx, edi
push edx
push eax
mov eax, dword [esi + 0xa4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esi + 0xbc], 0
mov esi, 0x92816c
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], 4
call fcn.00516727
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 1
call fcn.00515c0e
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.00516727
lea ecx, [esp + 0x54]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00515c0e
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 8